A simple Game of Life implementation in Java
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

16 satır
302 B

  1. public class Patch {
  2. private int _pxcor, _pycor;
  3. private String _plabel;
  4. private Grid _myGrid;
  5. public Patch(Grid grid, int xcor, int ycor) {
  6. _myGrid = grid;
  7. _pxcor = xcor;
  8. _pycor = ycor;
  9. }
  10. public String toString() {
  11. return _plabel;
  12. }
  13. }