This game is a rendition of John Conway's 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. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. It is Turing complete and can simulate a universal constructor or any other Turing machine.
Source: Conway's Game of Life
For Alive (Active) Cells:
- Each cell with one or zero neighbours dies, as if by underpopulation.
- Each cell with four or more neighbours dies, as if by overpopulation.
- Each cell with two or three neighbours will survive.
For Dead (Unactive) Cells:
- Each cell with exactly three neighbours becomes populated.
This rendition provides an infinite grid space in which you are able to draw and erase cells within. All cells within the grid follow the rules stated above.
- Made using Monogame.
- .NET Core 3.1
The game also contains infomation about:
- Whether the game is "Running" or "Not Running"
- Mouse position
- Speed of program
- Selected file
- Generation number
- Population amount
- Frames Per Second Counter
To activate the file input process you will need to press the ` or ¬ key. Once active, you will not be able to run the next generations until the process is turned off with the same button(s). You can input one of the files from the LifeWikiPatterns.zip file or make your own text file which details are below.
Step-by-Step:
- Press the key ` or ¬ to activate
- Type the directory of the file. e.g. 1beacon.cells OR 1beacon.rle OR FileName\1beacon.rle
- Press the key ` or ¬ to deactivate
- Press
A
to output pattern to mouse location
The file input works the same as above but with the .txt extension.
When creating your own pattern you will have to use the X
character to represent an alive (active) cell while everything else is classed as a dead (unactive) cell.
Glider Gun Example
GLIDERGUN###############X#######
######################X#X#######
############XX######XX########XX
###########X###X####XX########XX
XX########X#####x###XX##########
XX########X###X#XX####X#X#######
##########X#####X#######X#######
###########X###X################
############XX##################
` or ¬ : To activate/deactivate the file input process. Once active you will be able to type with the keybaord
SPACE
: Run the game at the set speed
DOWN ARROW
: Slow down the game
UP ARROW
: Speed up the game
RIGHT ARROW
: Procced to next generation
A
: Output current file at mouse location
R
: Reset the grid of cells
MOUSE1 (LEFT CLICK)
: Draw cells
MOUSE2 (RIGHT CLICK)
: Erase cells
MOUSE3 (MIDDLE CLICK)
: Move Camera
SCROLL
: Zoom in and out
T
: Toggle the UI on/off
ESCAPE
: Exits the program
Download Here
Versions:
- Windows - win-x64
- Windows - win-x86
- Linux - linux-x64
- Mac - osx-x64