-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
87 lines (64 loc) · 2.77 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
___ ___ _____ _____ __ _ _ __
/ __| _ \_ ) \/ / _ \ / _| | (_)/ _|___
| (_ | _// / > < (_) | _| |__| | _/ -_)
\___|_| /___/_/\_\___/|_| |____|_|_| \___|
Author: Benjamin Peter <Benjamin [email protected]>
------
Synopsis
------
GP2XOfLife is a simple implentation of "Conway's Game of Life" for the GP2X.
From Wikipedia:
The Game of Life is a cellular automaton devised by the British
mathematician John Horton Conway in 1970. It is the best-known example
of a cellular automaton.
The "game" is actually a zero-player game, meaning that its evolution is
determined by its initial state, needing no input from human players.
One interacts with the Game of Life by creating an initial configuration
and observing how it evolves.
*** Rules
The universe of the Game of Life is an infinite two-dimensional grid of
cells, each of which is either alive or dead. Cells interact with their
eight neighbours, which are the cells that are directly horizontally,
vertically, or diagonally adjacent. At each step in time, the following
effects occur:
1. Any live cell with fewer than two neighbours dies, as if by loneliness.
2. Any live cell with more than three neighbours dies, as if by
overcrowding.
3. Any live cell with two or three neighbours lives, unchanged, to the
next generation.
4. Any dead cell with exactly three neighbours comes to life.
The initial pattern constitutes the first generation of the system.
The second generation is created by applying the above rules simultaneously
to every cell in the first generation -- births and deaths happen
simultaneously, and the discrete moment at which this happens is sometimes
called a tick. The rules continue to be applied repeatedly to create
further generations.
See Wikipedia [1] for more information about what Game of Life is.
------
Installation
------
Extract the zip file to a location of your choice and run the .gpe file.
------
Controls
------
Joystick - Move cursor
Joystick + Y - Move view
A - Automatic mode on/off
X - Single step, Menu: Back
B - Toggle cell, Menu: Activate selection
Start - Exit
L - Toggle game rules dialog
R - Toggle options Menu
------
Savegames
------
The current state of the world can be saved in one of 5 slots. The first
slot is automatically loaded on game start. Savegames can be manually edited,
make sure to use only '.' for a dead and 'x' representing a living cell.
After loading the view is allways set to the center of the world. Saving the
game might take a couple of seconds.
------
This is free software, the sourcecode is available on archive.gp2x.de under
the terms of the gpl.
Happy living.
[1] Wikipedia - http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life