人工生命

ProcessingでLife Game

Processingでライフゲームを実装した. int CELL_NUM = 100; int CELL_SIZE = 5; int[][] cells; void setup(){ size(CELL_NUM * CELL_SIZE + 1, CELL_NUM * CELL_SIZE + 1); frameRate(40); // initialize cells cells = new int[CELL_NUM][CELL_NUM]; for(…