Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
seba
9e185ce008
|
15 år sedan | |
---|---|---|
.gitignore | 15 år sedan | |
Makefile | 15 år sedan | |
defaultfont.png | 15 år sedan | |
example.fld | 15 år sedan | |
gameoflife.cpp | 15 år sedan | |
gameoflife.h | 15 år sedan | |
libsegl.so.1 | 15 år sedan | |
life.cpp | 15 år sedan | |
readme.txt | 15 år sedan | |
start.fld | 15 år sedan | |
waves.fld | 15 år sedan |
readme.txt
Conway's "Game of Life" in 2d/3d
written by seba (www.seba-geek.de)
- Write a field-file
Begin with a header in the first line
<x (width)> <y (height)> <torus>
For example "21 21 1" would be a 21x21 field torus
After the header follows the field-definition,
col => x-axis, row => y-axis
0 is a dead cell
1 is a living cell
Look at the example.fld for further explaination
- Controls
t Toggle 2d/3d mode
p Pause
o Toggle OSD
e Toggle Edit-Mode
Move with shift + arrows
Toggle fieldstate withs Space
Clear field with shift + c
b Toggle buildup of cells
-/+ In- or decrease speed