Thumbnail

rani/games.git

Clone URL: https://git.buni.party/rani/games.git

Browsing tree for branch master, showing 2 entries

TypeFileLast CommitAuthorCommit Date (UTC)Size
txt README.md Add game of life rani 00:51, Jul 21 2023 481 B
txt life.c Allow redefinition of config macros on compiler command line rani 01:22, Jul 21 2023 3.54 KiB
README.md

Life

Conway’s Game of Life. The game begins in a board editor. Click on a dead cell to give it life and click on a living cell to kill it. Pressing enter begins the simulation. r clears the board. q quits the game.

During simulation, i edits the initial board, e edits the current board, and q quits the game.

Config

  • Y: Board height
  • X: Board width
  • DELAY: Time between generations (ms)
  • LIVE_C: Character for living cells
  • DEAD_C: Character for dead cells