Skip to content

ananthbh/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GameOfLife

Game of life using Swift MVVM.

About Game of Life

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.

How to run this project?

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.

About this project

This Game of Life project is made following MVVM architecture to run on a Device running iOS 15.4 or later.

Rules

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

Screenshots

Initial:

Screenshot 2022-07-10 at 20 46 50

After 3rd Generation:

Generation3

References

Releases

No releases published

Packages

No packages published

Languages