A simple implementation of Conway's Game of Life written in Kotlin.
The "Game" is a simulation of cellular life that takes an initial set of input, and then applies a set of rules on each successive iteration (generation).
The following rules are applied during each round of the simulation. The state of each cell in the next generation is based on the cell's eight neighboring cells.
- A live cell with less than two live neighbors dies.
- A live cell with two or three live neighbors lives.
- A live cell with more than three live neighbors dies.
- A dead cell with exactly three live cells becomes alive.
This application is written in Kotlin and includes a Gradle build script. The build script should be run using the gradle wrapper included.
On OS X/Linux:
./gradlew start
On Windows:
gradlew.bat start
This code is published under the MIT license.