コード例 #1
0
ファイル: Colony.java プロジェクト: TheCynosure/GameOfLife
  public Colony() {
    initCells();
    initLastGeneration();

    gridOn = false;

    for (int i = 0; i < 1000; i++) {
      lastGeneration[(int) (Math.random() * cells.length)][
              (int) (Math.random() * cells[0].length)] =
          new Cell(1);
    }
  }