Skip to content

a8h/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Visualizing Conway's Game of Life on the terminal.

Example

A screenshot of the visualization:

Game of Life Visualization

Requirements

  • Python 2.7 or Python 3.5
  • Unix-based OS (for ncurses support)

Usage

Run the Game of Life visualization with default settings (grid size equals size of the terminal window):

$ python game.py

Create a 24 x 40 block grid on your terminal, and run for 1000 ticks with a pause of 0.04 seconds between each tick:

$ python game.py 24 40 1000 0.04

Exit the Game of Life visualization by pressing Ctrl-C.

TODO

  1. Restart if caught in a repetitive cycle
  2. Optimize performance
  3. Use 255 colors
  4. Allow user to specify which colors to use
  5. Allow other ways to exit the program

About

Visualizing Conway's Game Of Life on the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages