aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c3adeaf67854a683bce30398b30cb2035293f678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

About

A c++ Linux CLI implementation of John Conway's game of life.

Features

  • Vim-like key bindings
  • Open RLE files
  • Change generation speed
  • Generation stepping
  • Pause & unpause

Usage

Key bindings (normal mode)

h, j, k & l to move left, down, up & right, respectively.

q to quit.

i to insert a cell.

x to delete a cell.

p to pause and unpause.

s to step a generation.

+ & - to to increment & decrement the generation speed, respectively.

: to enter command mode.

Commands

Commands that can be run in command mode.

open (PATH) to open a RLE file.

Todo

  • Dynamic terminal window size. Redraw everything when the window size changes

Original Scientific American article

John Conway's Game of Life

ANSI escape sequences

fmt