Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

omiroshn/The-Game-of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** Message to 42 students **

You are free to copy, modify and share under your name my exercises. But you will learn nothing, or will have the impression to understand without be able to do it again alone. Be responsible and simply ask for help.

                                                                     omiroshn

The Game of Life

Description

This time, let’s code a Game Of Life, also known as Conway’s automaton. And while we’re talking about Life, let’s do it in Lisp.

Before starting the program you need to install the Lisp interpreter sbcl and the SDL bind for Lisp "lispbuilder-sdl".

How to start the program:

sbcl --load game_of_life.lsp [-h] width height

Some usefull buttons:

esc - exit
WASD - image dragging
C - center
R - reset
G - grid on/off
P - pause
1-6 - pulsars, gliders, lightweight spaceships
< - slow down
> - speed up
+ - zoom
- - zoom
Mouse wheel - zoom
RB + shift - image dragging

Releases

No releases published

Packages

No packages published