A simple Game of Life implementation in Java
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
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. }