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