Skip to content

Interactive explorer for Conway's Game of Life Cellular Automaton

Notifications You must be signed in to change notification settings

benchislett/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Description

Implementation of Conway's Game of Life in C++ using the SFML graphics library.

Example screen

Installation

Dependencies

The only nonstandard dependency is SFML, a graphics library for rendering in C++

Makefile

The executable is built with g++ to a file named gameoflife, via the make command.

make clean will clear any object and executable files lingering, as well as resetting the output image.

Usage

Once built, run the executable with ./gameoflife.

The game simulation is run with:

  • The right arrow key, advancing one step
  • The space button (hold), advancing one step every frame (60x per second)
  • The "Q" key exits the game

Interaction with the playing field is as follows:

  • Left mouse button (click) will toggle a cell
  • Right mouse button (hold) will "paint" as long as it is held, changing to the opposite of the cell initially clicked
  • The "C" or "R" key will clear the field

TODOs

  • Wrapped boundaries
  • Automatic boundary extension

About

Interactive explorer for Conway's Game of Life Cellular Automaton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published