Game of life using Swift MVVM.
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input.
For running the project, follow the following steps:
- Make sure you are on a Mac and running Xcode 13.
- Clone this repository via https://github.com/ananthbh/GameOfLife.git.
- Open the file /GameOfLife/GameOfLife.xcodeproj.
- Select GameOfLife as the schema to run and select any of the iPhone simulators available.
This Game of Life project is made following MVVM architecture to run on a Device running iOS 15.4 or later.
- Any live cell with two or three live neighbours survives.
- Any dead cell with three live neighbours becomes a live cell.
- All other live cells die in the next generation. Similarly, all other dead cells stay dead.
Initial:
After 3rd Generation: