Debian Codegraph @

README

raw
1 ------------------------------------------------------------------------------
2
3 ATOM-4
4
5 by
6 H. S. Teoh
7
8 Dec 2002
9
10 ------------------------------------------------------------------------------
11
12
13 INTRODUCTION
14
15 Atom-4 is a 2-player color manipulation game played with spherical pieces on a
16 board divided into equilateral triangles. The player who first makes a row of
17 4 pieces of the right color wins.
18
19
20 RULES
21
22 Pieces may be placed only on the vertices of the triangular game board
23 divisions, and only if touching two other pieces which themselves are adjacent
24 to each other (i.e., it must form an equilateral triangle with two adjacent
25 pieces already on the board). Theoretically, the board is unlimited in size;
26 practically, we limit it to 16 vertices across and 16 rows down.
27
28 Pieces have 8 different colors in total, grouped into 4 groups:
29 - black
30 - red, green, and blue (the primary, or "additive", colors)
31 - yellow, cyan, and purple (the secondary, or "subtractive", colors)
32 - white
33
34 Black and white are also called "propagators" (explained below).
35
36 The first player plays additive colors, and must make a row of 4 whites. White
37 is the "goal piece" of the first player. Similarly, the second player plays
38 subtractive colors, and must make a row of 4 blacks. Black is the "goal piece"
39 of the second player.
40
41 Since neither player can play their goal pieces directly, they need to combine
42 the colors they play in order to form their goal pieces on the game board,
43 indirectly. Whenever an additive or subtractive piece is put on the board, it
44 changes the color of pieces surrounding it. The color changes are illustrated
45 by the following color wheel:
46
47 red yellow
48 \ /
49 purple --*-- green
50 / \
51 blue cyan
52
53 1) If the neighbouring piece has an adjacent color on the wheel, it does not
54 change. For example, if red is placed next to yellow or purple, the yellow
55 or purple remains the same.
56
57 2) If the neighbouring piece has a color 60 degrees away on the wheel, then
58 it changes to the color in between. For example, if red is placed next to
59 green, the green turns into a yellow. If a red is placed next to a blue,
60 the blue turns purple.
61
62 3) If the neighbouring piece has the opposite color on the wheel, then it
63 changes to either white or black, depending on what type of color the new
64 piece is. If the new piece is an additive piece, the neighbour becomes
65 white; if it is a subtractive piece, the neighbour becomes black. For
66 example, if a red is placed next to a cyan, the cyan turns white; but if
67 a cyan is placed next to the red, the red turns black.
68
69 4) If the new piece is additive and the neighbouring piece is black, then the
70 black changes to the same color as the new piece. Similarly, if the new
71 piece is subtractive and the neighbouring piece is white, then the white
72 changes to the same color as the new piece.
73
74 5) If the new piece is additive and the neighbouring piece is white, then the
75 white does not change, but the color change effect "propagates" through the
76 white to the piece behind the white. That piece then changes as though the
77 new piece had been placed next to it. If it is also white, then the effect
78 continues propagating in the same direction, in a straight line, until it
79 reaches a non-white piece, and then changes that non-white piece as though
80 the new piece was placed next to it. If an empty spot is reached before a
81 non-white piece, then nothing happens. Because of this effect, white pieces
82 are also called "additive propagators".
83
84 6) Similarly, if the new piece is subtractive and the neighbouring piece is
85 black, the color change effect propagates in the direction of the black
86 until it reaches a non-black piece, which then changes as though the new
87 piece had been placed next to it. Nothing happens if an empty spot is
88 reached before a non-black piece. Hence, black pieces are also called
89 "subtractive propagators".
90
91 (Another way to understand the color changes is treat colors as red, green,
92 and blue combinations. Additive colors always try to "add" themselves to their
93 neighbours: red + green = yellow (red & green together); red + cyan (green &
94 blue) = white. Subtractive colors try to remove their complement color from
95 their neighbours. For example, the complement of yellow (red & green) is blue;
96 so yellow tries to remove blue from its neighbours. Hence, when yellow (red &
97 green) is placed next to cyan (green & blue), the cyan turns green (loses the
98 blue component). Similarly, when cyan (green & blue) is placed next to white
99 (red & green & blue), it removes its complement, red, from the white; so the
100 white becomes cyan as well. In other words, additive colors behave like
101 colored light, whilst subtractive colors behave like colored paint.)
102
103 The initial state of the board consists of two pieces, green and purple, in
104 the middle of the board, touching each other. The first player then plays a
105 red, the second player plays a yellow, and then the first player plays a
106 green, and so on, taking turns, going clockwise around the color wheel. The
107 first person to make a row of 4 propagators wins.
108
109 If the game is played in multiple rounds, the second player may start first on
110 the second round, using a subtractive piece, and then the first player with
111 the next color clockwise on the color wheel, and so on. The starting
112 configuration always consists of two pieces, one 30 degrees counterclockwise
113 from the starting color on the color wheel, and the other 60 degrees
114 clockwise; each touching the other in the center of the board.
115
116
117 GAME STRATEGY CONSIDERATIONS
118
119 1) Notice that in order to get from additive colors to white, the first player
120 must form secondary colors and then add their complements; but the second
121 player already plays secondary colors. So the first player can make use of
122 the pieces played by the second player to make whites, which is faster than
123 building whites from scratch. Similarly, the second player plays subtractive
124 pieces and must first form primary colors and then add the complements to
125 make black; but the first player already plays primary colors, which can be
126 exploited to make blacks.
127
128 This also means that when playing a piece, one should be careful not to
129 give too much advantage to the other player by providing material to make
130 propagators (black or white).
131
132 2) Propagators (blacks or whites) are useful for changing colors of pieces
133 already blocked from direct access because they are surrounded by other
134 pieces. Using propagators, you can create more propagators from such
135 "buried" pieces. Strategic positioning of propagators that allow you to
136 reach these "internal" pieces is key to winning the game. On the other hand,
137 one should also be aware that the opponent can destroy such exposed
138 propagators easily.
139
140 3) Since it is relatively easy for one's opponent to prevent one from winning
141 by changing the color of a piece intended to be the 4th propagator in the
142 row of 4, the good strategy is to devise a way to have at least two
143 different pieces that can serve as a 4th piece in the row. Another good
144 strategy is to bury the prospective 4th piece with other non-essential
145 pieces so that the opponent cannot easily change its color, and have
146 multiple propagator paths to it. Then if the opponent blocks one propagator
147 path, another one is available to reach it.
148
149 4) It is very useful to anticipate the color of one's subsequent piece, and
150 plan accordingly. For example, if the first player is playing a red, and
151 there are no cyans around, it is useful to place the red next to blue
152 pieces, because they form purple which can be complemented by the green on
153 the next turn. If they are placed next to green pieces, the result is
154 yellow, which cannot be used until 2 turns later.
155
156
157 COPYRIGHT
158
159 This game concept and its accompanying software implementation thereof is
160 copyrighted 2002-2003 by Hwei Sheng Teoh <[email protected]>.
161
162 This software is licensed under the General Public License. The terms and
163 conditions of this license can be found in the COPYRIGHT file shipped with
164 the source code. If you are using a Debian GNU/Linux system, the license
165 may be found in /usr/share/common-licenses/GPL-2. A copy of the license may
166 also be obtained from the Free Software Foundation website, at:
167 http://www.gnu.org/licenses/gpl.txt
168