Skip to content

nelson-sean/game_of_life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

Game of Life

Conway's game of life implemented in ncurses

Instructions

To run

hanoi [-c color] [-f file]

Arguments

  • -c COLOR

    Make cells use specified color

  • -s SPEED

    Starting speed. Integer from 0-10

  • -f FILE

    Use a text file as a starting state. Text file should be formatted as a rectangle of 1s and 0s with 1s representing a live cell e.g.

  1111111111
  1000000001
  1011111101
  1010000101
  1010110101
  1010110101
  1010000101
  1011111101
  1000000001
  1111111111

Controls

  • Pause/Unpause - "return"
  • Slow Simulation Speed - "-"
  • Increase Simulation Speed - "="

While paused

  • Toggle cell - "space or click"
  • Move Cursor - "h,j,k,l"
  • Step one generation - "s"
  • Export current state to file - "e"

Screenshot

game_of_life

About

Conway's game of life for the terminal with ncurses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published