Carnifex is a Conway's game of Life automaton, made in Common Lisp, in the context of a 48hours rush at 42 Paris, to learn more about the subject, see Carnifex.pdf
Made by @Ashbury, @willfree108, @iomonad, @tnicolas42, @UgoNic and me
- SDL
- sbcl or any other lisp interpreter
- quicklisp
You can download and install the SDL Library here
sbcl is available on many package managers for linux users, for Mac users or if you need to compile it from source, a full tutorial is available here
Once SDL and your favority lisp interpreter are installed, clone this repository
git clone https://github.com/jjaniec/Carnifex
and download the quicklisp library manager in the cloned directory
cd Carnifex
curl https://beta.quicklisp.org/quicklisp.lisp > quicklisp.lisp
Run sbcl and type in the following:
(load "/path/to/quicklisp.lisp")
(quicklisp-quickstart:install)
sbcl --load ./main.lisp [-h --help -i --invert -t --traces] <width:int> <height:int>
-i / --invert: Invert colors
-t / --traces: Enable dying cells traces
You can use mouse clicks to change cells lives
Left click on board: Vitalize pointed cell
Right click on board: Kill pointed cell
The following keybindings are available to control the display
'e' / keypad '+': Increase zoom
'q' / keypad '-': Decrease zoom
',' / '<': Decrease cycles/second
'.' / '>': Increase cycles/second
'w' 'a' 's' 'd' / arrows / shift + mouse left click: Move camera
'r': Reset board
'esc': Exit
'p' / 'space': Play / Pause
This project will not be maintained, but pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.