Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.
/ gameoflife Public archive

Conway's Game of Life in Rust with piston

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

icasdri/gameoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Conway's Game of Life implemented in Rust with piston (by default, graphics done by OpenGL).

Controls

To pan the field of view:

  • Click and drag anywhere in the window, or
  • Scroll up, down, left, or right (with e.g. a scroll wheel)

To zoom:

  • Ctrl + to zoom in
  • Ctrl - to zoom out
  • Alternatively, hold Ctrl while scrolling up and down

Other controls:

  • Click directly on a cell to toggle alive/dead
  • Spacebar to pause/resume generation ticks
  • [ and ] to slow down and speed up (respectively) generation ticks

Building

A recent Rust toolchain is required for building. Piston will use the pure-Rust glutin OpenGL context creation library by default (alleviating the need for linking against external libraries).

To build (a debug version):

cargo build

To build then run directly:

cargo run

About

Conway's Game of Life in Rust with piston

Topics

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages