Skip to content

An interactive SDL2 implementation of Conway's Game of Life

License

Notifications You must be signed in to change notification settings

ethanavatar/Rust-CA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Cellular Automata

An interactive SDL2 implementation of Conway's Game of Life

Installation

Clone the repo and navigate into it.

git clone https://github.com/ethanavatar/Rust-CA.git
cd Rust-CA/

Build the app using:

cargo build

Usage

Run the app using:

cargo run

A window will open with a random initial state and start simulating immediately.

You can also use:

  • SPACE to pause the simulation
  • ESCAPE to clear the current board
  • R to create a new random board
  • LEFT MOUSE to add or remove cells
  • PERIOD to pause and step one generation at a time

By default, the window is 1200x1200 pixels and the game board is 200x200 cells. It runs as fast as it can without an FPS cap.

About

An interactive SDL2 implementation of Conway's Game of Life

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages