A simple Game of Life implementation in Java
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

16 řádky
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. }