Skip to content

Conway's Game Of Life in Rust

Notifications You must be signed in to change notification settings

tkoster/gameoflife-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game Of Life

This is an implementation of John Conway's Game Of Life in the Rust programming language.

This program is a port of this Haskell program.

The generations are animated at 120 frames per second.

a screenshot of a window displaying the game of life

Getting Started

Prerequisites

  • Cargo was used to build this project.
  • SDL2 was used (via these bindings) for window management, input and rendering.

Run cargo build --release to compile the source code.

To run the program from this directory, run cargo run --release.

Input bindings

Click the left mouse button to place a pattern where you clicked.

Click and drag the right mouse button to continuously place patterns as you drag the mouse.

Press the numbers 1, 2 or 3 to change the selected pattern from presets.

Press R to rotate the selected pattern 90 degrees counterclockwise.

Press P to pause and unpause the evolution of the generations.

Press Escape to quit.

About

Conway's Game Of Life in Rust

Topics

Resources

Stars

Watchers

Forks

Languages