Download

conway

A Conway's Game of Life console program

  • CLI
  • C
Code 232 linesC 199Makefile 33
Binary data 2.3 MiBGIF 2.3 MiB
NameModifiedLinesSize
LICENSE 20 lines6% of this folder's lines 1.1 KiB<1% of this folder's bytes
Makefile 40 lines12% of this folder's lines 857 B<1% of this folder's bytes
README.md 26 lines8% of this folder's lines 806 B<1% of this folder's bytes
conway.1 48 lines14% of this folder's lines 1.2 KiB<1% of this folder's bytes
conway.c 211 lines61% of this folder's lines 7.2 KiB<1% of this folder's bytes
conway.gif 0 lines0% of this folder's lines 2.3 MiB>99% of this folder's bytes

README.md

Conway

This is a program for running Conway's Game of Life on the command line.

Preview

Building

make to build and make install to install.

Usage

Command line flags:

  • -S [0-8]* the rules for when an alive cell survives
  • -B [0-8]* the rules for when a new cell is born
  • -A <color> provide a color for alive cells (RGB hex, either 3 or 6 chars)
  • -D <color> provide a color for dead cells (RGB hex, either 3 or 6 chars)

Some interesting rulesets can be found in this list.

Actions:

  • Mouse: draw cells (by default: create new cells)
  • Space: toggle mouse mode between create/destroy
  • p: toggle play/pause
  • q or Escape: quit
  • c: clear the world