Home Game of Life ncurses
Post
Cancel

Game of Life ncurses

All the file and code for this project are available on the Github Repo

Small implementation of the famous Conway’s Game of Life cellular automaton, using ncurses terminal graphics libraries.

Some commands are available during execution:

1
2
3
4
5
6
7
8
9
10
  -[SPACE] -> generate a new random starting grid
  -'i'      -> show a small window with information about the current session.
  -'u'      -> hide the info window
  -'q'      -> terminate and exit the program
  -'c'      -> change the color of the cells
  -'b'      -> change the background color
  -'p'      -> enable step-by-step mode: to continue, press 'p'
  -'o'      -> enable continuous mode
  -'e'      -> increase the delay between iterations
  -'w'      -> decrease the time between iterations

It is possible to modify the size of the grid or the character of live/dead cells from the ‘define’ at the beginning of the program.

Links

This post is licensed under CC BY 4.0 by the author.

-

MuHi Project

Comments powered by Disqus.