Coder Social home page Coder Social logo

carnifex's Introduction

Carnifex

What's Carnifex

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

Installation

Requirements

  • 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)

Usage

sbcl --load ./main.lisp [-h --help -i --invert -t --traces] <width:int> <height:int>

Options

-i / --invert: Invert colors
-t / --traces: Enable dying cells traces

Commands

Controlling cells lives

You can use mouse clicks to change cells lives

Left click on board: Vitalize pointed cell
Right click on board: Kill pointed cell

Keybindings

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 

Contributions

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.

carnifex's People

Contributors

jjaniec avatar tnicolas42 avatar iomonad avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.