To build you'll need gcc
and sdl2
installed.
brew install sdl2
bin/build-snake
# run the game
out/snake
Control the snake with the arrow keys.
Build and run:
bin/build-gameOfLife && out/gameOfLife
Controls:
- Up arrow: Increase speed
- Down arrow: Decrease speed
- P: Pause
- R: Reset