icasdri / gameoflife

Conway's Game of Life in Rust with piston

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%