]> git.saurik.com Git - wxWidgets.git/blame - demos/life/samples.inc
Chinese translations update from Jiawei Huang.
[wxWidgets.git] / demos / life / samples.inc
CommitLineData
087e4f4a
GRG
1/////////////////////////////////////////////////////////////////////////////
2// Name: samples.inc
3// Purpose: Sample configurations for Life!
4// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
5// Modified by:
6// Created: Jan/2000
087e4f4a
GRG
7// Copyright: (c) 2000, Guillermo Rodriguez Garcia
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// --------------------------------------------------------------------------
12// sample configurations
13// --------------------------------------------------------------------------
14
15/* Format:
16 *
17 * Name,
18 * Description,
e0a40292
GRG
19 * Width,
20 * Height,
21 * Data ('*' = alive, '.' = dead)
087e4f4a
GRG
22 *
23 */
24
f6bcfd97 25const LifePattern g_patterns[] =
087e4f4a 26{
f6bcfd97
BP
27 LifePattern(
28 _("Glider"),
1babe8fd 29 _("The glider is the first of a series of life forms, known as spaceships or fishes, which can travel along the game field retaining their original shape."),
087e4f4a
GRG
30 3, 3,
31 ".*."
32 "..*"
33 "***"),
f6bcfd97
BP
34 LifePattern(
35 _("Heavyweight spaceship"),
1babe8fd 36 _("The glider is just the smaller of the spaceships; this one, known as the heavyweight spaceship or 'big fish', is the largest spaceship which can travel alone without destroying itself. Larger ones can only travel safely if they are supported by smaller spaceships."),
087e4f4a
GRG
37 7, 4,
38 ".....*."
39 "......*"
40 "*.....*"
41 ".******"),
f6bcfd97
BP
42 LifePattern(
43 _("Eater"),
1babe8fd 44 _("An eater is any still life that can repair itself from some attacks. This one (bottom right), also known as 'fishhook', eats gliders and fishes (spaceships) provided that they approach in a certain angle."),
087e4f4a
GRG
45 10, 10,
46 ".*........"
47 "..*......."
48 "***......."
49 ".........."
50 ".........."
51 ".........."
52 "......**.."
53 "......*.*."
54 "........*."
55 "........**" ),
f6bcfd97
BP
56 LifePattern(
57 _("Dice shaker"),
1babe8fd 58 _("Oscillators have been extensively explored in Life!. The dice shaker turns around each seven tics; thus, it is an oscillator with a period of fourteen."),
087e4f4a
GRG
59 7, 6,
60 ".**.**."
61 ".**.**."
62 "..*.*.."
63 "*.*.*.*"
64 "*.*.*.*"
65 "**...**" ),
f6bcfd97
BP
66 LifePattern(
67 _("Hertz oscillator"),
1babe8fd 68 _("The Hertz oscillator is a good example of a set of life patterns known as 'billiard tables'. A billiard table is an oscillator which is built inside a stable border. In particular, this one has a period of eight."),
087e4f4a
GRG
69 14, 11,
70 ".....**......."
71 ".....**......."
72 ".............."
73 "**...****...**"
74 "*.*.*....*.*.*"
75 "..*.**...*.*.."
76 "*.*.*....*.*.*"
77 "**...****...**"
78 ".............."
79 ".......**....."
80 ".......**....." ),
f6bcfd97
BP
81 LifePattern(
82 _("Phoenix"),
1babe8fd 83 _("A phoenix is a pattern whose cells all die in every generation, and yet lives forever. For example, this is a phoenix with period two."),
087e4f4a
GRG
84 8, 8,
85 "....*..."
86 "..*.*..."
87 "......*."
88 "**......"
89 "......**"
90 ".*......"
91 "...*.*.."
92 "...*...." ),
f6bcfd97
BP
93 LifePattern(
94 _("R-pentomino"),
1babe8fd 95 _("The R-pentomino is a methuselah - a life form which lives for hundreds of generations without stabilizing or dying. In particular, the R-Pentomino requires more than one thousand tics to reach a stable (periodic) state."),
087e4f4a
GRG
96 3, 3,
97 ".**"
98 "**."
e0a40292 99 ".*." ),
f6bcfd97
BP
100 LifePattern(
101 _("Thunderbird"),
1babe8fd 102 _("The thunderbird is another popular methuselah, which doesn't stabilize until the 243th generation. Note that because the initial configuration is symmetrical with respect to the vertical axis, all generations must be symmetrical as well."),
087e4f4a
GRG
103 3, 5,
104 "***"
105 "..."
106 ".*."
107 ".*."
e0a40292 108 ".*." ),
f6bcfd97
BP
109 LifePattern(
110 _("Accorn"),
1babe8fd 111 _("Probably the most popular methuselah, the accorn lives for 5206 (!) generations."),
087e4f4a
GRG
112 7, 3,
113 ".*....."
114 "...*..."
e0a40292 115 "**..***" ),
f6bcfd97
BP
116 LifePattern(
117 _("Galaxy"),
1babe8fd 118 _("One from my personal collection. It is really beautiful to see this configuration expand and shrink periodically for hundreds of tics before reaching a stable state."),
087e4f4a
GRG
119 13, 13,
120 "...***......."
121 "......*......"
122 "......*......"
123 "......*.....*"
124 ".....***....*"
2480be69
GRG
125 "....*...*...*"
126 ".****...****."
127 "*...*...*...."
087e4f4a
GRG
128 "*....***....."
129 "*.....*......"
130 "......*......"
131 "......*......"
e0a40292 132 ".......***..." ),
f6bcfd97
BP
133 LifePattern(
134 _("Glider gun"),
1babe8fd 135 _("A gun is a stationary pattern that emits spaceships forever. The glider gun shown here was the first known gun, and indeed the first known finite pattern with unbounded growth. It was found by Bill Gosper in November 1970. Many new guns have since been found."),
e0a40292
GRG
136 36, 9,
137 ".........................*.........."
29b07a38
GRG
138 "......................****.........."
139 ".............*.......****..........."
e0a40292
GRG
140 "............*.*......*..*.........**"
141 "...........*...**....****.........**"
142 "**.........*...**.....****.........."
143 "**.........*...**........*.........."
144 "............*.*....................."
145 ".............*......................" ),
f6bcfd97
BP
146 LifePattern(
147 _("Puffer train"),
1babe8fd 148 _("A puffer is an object that moves like a spaceship, except that it leaves a trail of debris behind. The puffer train is one of the best-known puffers. Originally found by Bill Gosper, this is a very dirty puffer; the tail does not stabilize until generation 5533. It consists of a B-heptomino (the middle pattern) escorted by two light weight space ships."),
e0a40292
GRG
149 5, 18,
150 "...*."
151 "....*"
152 "*...*"
153 ".****"
154 "....."
155 "....."
156 "....."
157 "*...."
158 ".**.."
159 "..*.."
160 "..*.."
161 ".*..."
162 "....."
163 "....."
164 "...*."
165 "....*"
166 "*...*"
167 ".****" ),
f6bcfd97
BP
168 LifePattern(
169 _("Max"),
9c157f38
DS
170 _("Max is the fastest-growing known pattern in Conway's Game of Life (possibly the fastest possible).")
171 + wxString(_(" It fills space to a density of 1/2, conjectured to be the maximum density, and does it at a speed"))
172 + wxString(_(" of c/2 in each of the 4 directions, which has been proven to be the maximum possible speed.\n\nPopulation"))
173 + wxString(_(" growth is:\n[(t+19)^2+463]/4 for t divisible by 4;\n[(t+19)^2+487]/4 for t even, not div. by 4;\n"))
174 + wxString(_("[(t+18)^2+639]/4 for t odd.\n\nOriginal construction, top/bottom stretchers by Hartmut Holzwart;"))
175 + wxString(_(" Size optimization, left/right stretchers by David Bell; Original idea, middle part, left/right stretcher"))
176 + wxString(_(" connection by Al Hensel.\n\nThis spacefiller by David Bell, September 1993.")),
e0a40292
GRG
177 29, 43,
178 ".....*.*....................."
179 "....*..*....................."
180 "...**........................"
181 "..*.........................."
182 ".****........................"
183 "*....*......................."
184 "*..*........................."
185 "*..*........................."
186 ".*.........***...***........."
187 "..****.*..*..*...*..*........"
188 "...*...*.....*...*..........."
189 "....*........*...*..........."
190 "....*.*......*...*..........."
191 "............................."
192 "...***.....***...***........."
193 "...**.......*.....*.........."
194 "...***......*******.........."
195 "...........*.......*........."
196 "....*.*...***********........"
197 "...*..*..*............**....."
198 "...*.....************...*...."
199 "...*...*.............*...*..."
200 "....*...************.....*..."
201 ".....**............*..*..*..."
202 "........***********...*.*...."
203 ".........*.......*..........."
204 "..........*******......***..."
205 "..........*.....*.......**..."
206 ".........***...***.....***..."
207 "............................."
208 "...........*...*......*.*...."
209 "...........*...*........*...."
210 "...........*...*.....*...*..."
211 "........*..*...*..*..*.****.."
212 ".........***...***.........*."
213 ".........................*..*"
214 ".........................*..*"
215 ".......................*....*"
216 "........................****."
217 "..........................*.."
218 "........................**..."
219 ".....................*..*...."
220 ".....................*.*....." )
087e4f4a 221};