Skip to content

TimSousa1/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameOfLife

Conway's Game of Life in C with raylib

Controls

R to reset
S to save to file
SPACE to pause
left click to draw

Installation

GameOfLife depends on raylib to work.

Arch Linux

$ sudo pacman -S raylib
$ make inside the build folder

Building from source

Of course, raylib can be built from source.

Running

$ ./gameoflife <options>
A file containing a board can be specified to be loaded, otherwise an empty canvas of 160x90 will be used as the default.

File format

The file format should be:

C L sizex sizey
matrix

C and L are the number os columns and lines of the input matrix, and the sizes control the canvas size.
Matrix values should be separated by spaces, any tabs or CRs will be ignored.

Avoid using a canvas ratio different from screen aspect ratio to avoid issues.

About

Conway's Game of Life in C with raylib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published