Skip to content

rdiachenko/life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Life

The project represents different variations of Conway's Game of Life.

C++ Life

Youtube video is here and here (with interesting effect)

How to run

# install SDL and its dependencies
$ sudo yum install SDL*

$ cd cpp-life
$ make

# see help
$ ./life -h
Usage: 
<MOUSE_LEFT_CLICK> - turn cell on
<MOUSE_RIGHT_CLICK> - turn cell off
<SPACE> - pause/resume
<ESC> - clear field

$ ./life

To play with the game parameters go to cpp-life/Constants.h.

Scala-Life

How to run

# install sbt and its dependencies
$ sudo yum install sbt

# compile and run the Game of Life
$ cd scala-life
$ sbt clean compile run