efyang / conway-piston

Conway's Game of Life using Piston

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

conway-piston

Conway's Game of Life using Piston

Controls:

  • Esc => Exit
  • R => Reset to previous seed
  • G => New random seed
  • S => Save Seed
  • V => Save current value
  • C => Delete all saved seeds
  • E => Edit mode
  • P => Pause
  • N => Normal/Default mode

Commandline Arguments:

  • -h --help - gives help documentation
  • -w --width - sets a custom window width
  • -h --height - sets a custom window height
  • -s --seed - sets a custom starting seed, overrides width and height
  • -m --mode - sets the starting mode to use: default/normal, pause, edit
  • -a --alive - sets a hex color for live tiles
  • -d --dead - sets a hex color for dead tiles

Todo:

  • Change all vectors to arrays to take advantage of stack vs heap allocation all values in rust are default stack allocated
  • Parallel Checking
  • Saving and reading seeds
  • Seed editing mode
  • Commandline arguments for starting mode
  • Commandline arguments for colors (hex)

Uses MattWoelk's snake-piston and xairy's rust-sudoku as a general template (piston examples aren't very good)

About

Conway's Game of Life using Piston


Languages

Language:Rust 100.0%