Skip to content

SrVariable/GOL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOL

The mythical Conway's Game of Life made in C using raylib.

Preview

preview.webm

Installation

Debian / Ubuntu

sudo apt update && sudo apt install build-essential git \
libasound2-dev libx11-dev libxrandr-dev libxi-dev \
libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev \
libxinerama-dev libwayland-dev libxkbcommon-dev

Windows

Follow steps 1, 2, 3: https://github.com/raysan5/raylib/wiki/Working-on-Windows#manual-setup-with-w64devkit

Controls

Key Description
B Blinker
G Glider / Gospel Gun Glider
Left Click Put cell
Right Click Remove cell
. Increase speed
, Decrease speed
Space Pause / Play game
R Restart board

Note

If you press Shift when using a key to select a pattern, it will switch reversed.

How to play

Execute make run and it will start the game. Left click to put an alive cell or right click to put a dead cell. To put a pattern, hold its respective key and left click. For example G Left Click will place a Glider in the selected zone.

References

Contributing

If you find any bug or have any suggestion, please open an issue here.

About

The mythical Conway's Game of Life

Topics

Resources

Stars

Watchers

Forks