Introduce names for header and row color in the tables so that they are the same...
[kugel-rb/myfork.git] / manual / plugins / goban.tex
blobfe343b02c36058d51b83d04074b23e9049bf1d00
1 \subsection{Goban}
2 \screenshot{plugins/images/ss-goban}{Goban}{The Rockbox Goban plugin}
3 Goban is a a plugin for playing, viewing and recording games of Go (also known
4 as Weiqi, Baduk, Igo and Goe). It uses standard Smart Game Format (SGF) files
5 for saving and loading games.
7 You can find a short introduction to Go at
8 \url{http://senseis.xmp.net/?WhatIsGo} and more information about SGF files
9 can be read at \url{http://senseis.xmp.net/?SmartGameFormat} or the SGF
10 specification at
11 \url{http://www.red-bean.com/sgf/}.
13 This plugin can load all modern SGF files (file format 3 or 4) with few problems.
14 It attempts to preserve SGF properties which it doesn't understand, and most common
15 SGF properties are handled fully. It is possible to view (and edit if you like)
16 Kogo's Joseki Dictionary (\url{http://waterfire.us/joseki.htm}) with this plugin,
17 although the load and save times can be on the order of a minute or two on
18 particularly slow devices. Large SGF files may stop audio playback for the duration
19 of the plugin's run in order to free up more memory and some very large SGF files will
20 not even load on devices with little available memory.
22 \emph{Note: } The plugin does \emph{NOT} support SGF files with multiple games in
23 one file. These are rare, but if you have one don't even try it (the file will most
24 likely be corrupted if you save over it). You have been warned.
26 The file \fname {"/sgf/gbn\_def.sgf"} is used by the plugin to store any unsaved
27 changes in the most recently loaded game. This means that if you forget to save your
28 changes, you should load \fname {"/sgf/gbn\_def.sgf"} immediately to offload the changes
29 to another file. If you load another file first then your changes will be lost
30 permanently. The \fname {"/sgf/gbn\_def.sgf"} file is also the file loaded if another
31 is not selected.
33 The information panel which displays the current move number may also contain
34 these markers: \\
36 \begin{table}
37 \begin{center}
38 \rowcolors{1}{}{tblrowbgcolor}
39 \begin{tabularx}{\textwidth}{lX}\toprule
40 \textbf{Mark} & \textbf{Meaning} \\ \midrule
41 \emph{+ } & There are nodes after the current node in the SGF tree. \\
42 \emph{* } & There are sibling variations which can be navigated to using the %
43 \emph{Next Variation} menu option of the \emph{Context Menu}%
44 \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,%
45 RECORDER_PAD,MROBE100_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,%
46 IRIVER_H300_PAD}{ or the %
47 \opt{SANSA_E200_PAD,SANSA_C200_PAD}{\ButtonRec}%
48 \opt{SANSA_FUZE_PAD,SANSA_CLIP_PAD}{\ButtonHome}%
49 \opt{RECORDER_PAD}{\ButtonOn}%
50 \opt{MROBE100_PAD}{\ButtonPower}%
51 \opt{GIGABEAT_PAD}{\ButtonA}%
52 \opt{GIGABEAT_S_PAD}{\ButtonPlay}%
53 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec} button}. \\
54 \emph{C } & There is a comment at the current node. It can be viewed/edited using
55 the \emph{Add/Edit Comment} menu option of the \emph{Context Menu}. \\
56 \bottomrule
57 \end{tabularx}
58 \end{center}
59 \end{table}
61 \subsubsection{Controls}
62 \begin{table}
63 \begin{btnmap}{}{}
64 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
65 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
66 IAUDIO_X5_PAD,RECORDER_PAD,ONDIO_PAD}{\ButtonUp}%
67 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonMenu}%
68 \opt{IRIVER_H10_PAD}{\ButtonScrollUp}
69 \opt{HAVEREMOTEKEYMAP}{& }
70 & Move cursor up \\
71 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
72 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
73 IAUDIO_X5_PAD,RECORDER_PAD,ONDIO_PAD}{\ButtonDown}%
74 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonPlay}%
75 \opt{IRIVER_H10_PAD}{\ButtonScrollDown}
76 \opt{HAVEREMOTEKEYMAP}{& }
77 & Move cursor down \\
78 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,IPOD_1G2G_PAD,%
79 IPOD_3G_PAD,IPOD_4G_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,%
80 IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
81 ONDIO_PAD}{\ButtonLeft}
82 \opt{HAVEREMOTEKEYMAP}{& }
83 & Move cursor left %
84 \opt{ONDIO_PAD}{if in \emph{board} navigation mode, or %
85 retreat one node in the game tree if in %
86 \emph{tree} navigation mode} \\
87 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,IPOD_1G2G_PAD,%
88 IPOD_3G_PAD,IPOD_4G_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,%
89 IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
90 ONDIO_PAD}{\ButtonRight}
91 \opt{HAVEREMOTEKEYMAP}{& }
92 & Move cursor right
93 \opt{ONDIO_PAD}{if in \emph{board} navigation mode, or advance one node in
94 the game tree if in \emph{tree} navigation mode} \\
95 \opt{ONDIO_PAD}{\ButtonOff & Toggle between \emph{board} and \emph{tree}
96 navigation modes \\}
97 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
98 SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,%
99 MROBE100_PAD,IAUDIO_X5_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD}{\ButtonSelect}%
100 \opt{IRIVER_H10_PAD,RECORDER_PAD}{\ButtonPlay}%
101 \opt{ONDIO_PAD}{\ButtonMenu}
102 \opt{HAVEREMOTEKEYMAP}{& }
103 & Play a move (or use a tool if play-mode has been changed). \\
104 \nopt{ONDIO_PAD}{
105 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,%
106 IPOD_4G_PAD}{\ButtonScrollBack}%
107 \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
108 GIGABEAT_S_PAD}{\ButtonVolDown}%
109 \opt{IRIVER_H10_PAD}{\ButtonFF}%
110 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}%
111 \opt{MROBE100_PAD}{\ButtonMenu}%
112 \opt{IAUDIO_X5_PAD}{\ButtonPlay}%
113 \opt{RECORDER_PAD}{\ButtonFOne}
114 \opt{HAVEREMOTEKEYMAP}{& }
115 & Retreat one node in the game tree \\
116 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
117 IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonScrollFwd}%
118 \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
119 GIGABEAT_S_PAD}{\ButtonVolUp}%
120 \opt{IRIVER_H10_PAD}{\ButtonRew}%
121 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn}%
122 \opt{MROBE100_PAD}{\ButtonPlay}%
123 \opt{IAUDIO_X5_PAD}{\ButtonRec}%
124 \opt{RECORDER_PAD}{\ButtonFThree}
125 \opt{HAVEREMOTEKEYMAP}{& }
126 & Advance one node in the game tree \\
128 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
129 IRIVER_H10_PAD,IAUDIO_X5_PAD}{\ButtonPower}%
130 \opt{MROBE100_PAD}{\ButtonDisplay}%
131 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{Long \ButtonSelect}%
132 \opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonMenu}%
133 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonMode}%
134 \opt{RECORDER_PAD}{\ButtonFTwo}%
135 \opt{ONDIO_PAD}{Long \ButtonMenu}
136 \opt{HAVEREMOTEKEYMAP}{& }
137 & Main Menu \\
138 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,%
139 IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,%
140 IRIVER_H10_PAD}{%
141 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
142 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
143 IAUDIO_X5_PAD}{Long \ButtonSelect}%
144 \opt{IRIVER_H10_PAD}{Long \ButtonPlay}
145 \opt{HAVEREMOTEKEYMAP}{& }
146 & Context Menu \\ }
147 \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,RECORDER_PAD,MROBE100_PAD,%
148 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,SANSA_CLIP_PAD}{%
149 \opt{SANSA_E200_PAD}{\ButtonRec}%
150 \opt{SANSA_FUZE_PAD,SANSA_CLIP_PAD}{\ButtonHome}%
151 \opt{SANSA_C200_PAD}{\ButtonRec}%
152 \opt{RECORDER_PAD}{\ButtonOn}%
153 \opt{MROBE100_PAD}{\ButtonPower}%
154 \opt{GIGABEAT_PAD}{\ButtonA}%
155 \opt{GIGABEAT_S_PAD}{\ButtonPlay}%
156 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec}
157 \opt{HAVEREMOTEKEYMAP}{& }
158 & Go to the next variation when at the first node in a branch \\ }
159 \end{btnmap}
160 \end{table}
162 \subsubsection{Menus}
163 \begin {description}
164 \item [Main Menu. ]
165 The main menu for game setup and access to other menus.
167 \emph {New. } Create a new game with your choice of board size and handicaps. \\
168 \emph {Save. } Save the current state of the game. It will be saved to
169 \fname {"/sgf/gbn\_def.sgf"} unless otherwise set. \\
170 \emph {Save As. } Save to a specified file. \\
171 \emph {Game Info. } View and modify the metadata of the current game. \\
172 \emph {Playback Control. } Control the playback of the current playlist and
173 modify the volume of your player. \\
174 \emph {Zoom Level. } Zoom in or out on the board. If you set the zoom level, it
175 will be saved and used again the next time you open this plugin. \\
176 \emph {Options. } Open the Options Menu. \\
177 \emph {Context Menu. } Open the Context Menu which allows you to set play modes
178 and other tools. \\
179 \emph {Quit. } Leave the plugin. Any unsaved changes are saved to
180 \fname {"/sgf/gbn\_def.sgf"}. \\
182 \item [Game Info. ]
183 The menu for modifying game info (metadata) of the current game. This
184 information will be saved to the SGF file and can be viewed in almost all
185 SGF readers.
187 \emph {Basic Info. } Shows a quick view of the basic game metadata, if any
188 has been set (otherwise does nothing). This option does not allow editing. \\
189 \emph {Time Limit. } The time limit of the current game. \\
190 \emph {Overtime. } The overtime settings of the current game. \\
191 \emph {Result. } The result of the current game. This text must follow the
192 format specified at \url{http://www.red-bean.com/sgf/properties.html#RE} to
193 be read by other SGF readers. Some examples are \emph {B+R} (Black wins by
194 resignation), \emph {B+5.5} (Black wins by 5.5 points), \emph {W+T} (White wins
195 on Time). \\
196 \emph {Handicap. } The handicap of the current game. \\
197 \emph {Komi. } The komi of the current game (compensation to the white
198 player for black having the first move). \\
199 \emph {Ruleset. } The name of the ruleset in use for this game. The \emph{NZ}
200 and \emph{GOE} rulesets include suicide as a legal move (for multi-stone
201 suicide only); the rest do not. \\
202 \emph {Black Player. } The name of the black player. \\
203 \emph {Black Rank. } Black's rank, in dan or kyu. \\
204 \emph {Black Team. } The name of black's team, if any. \\
205 \emph {White Player. } The name of the white player. \\
206 \emph {White Rank. } White's rank, in dan or kyu. \\
207 \emph {White Team. } The name of white's team, if any. \\
208 \emph {Date. } The date that this game took place. This text must follow the
209 format specified at \url{http://www.red-bean.com/sgf/properties.html#DT} to
210 be read by other SGF readers. \\
211 \emph {Event. } The name of the event which this game was a part of, if any.
213 \emph {Place. } The place that this game took place. \\
214 \emph {Round. } If part of a tournament, the round number for this game. \\
215 \emph {Done. } Return to the previous menu. \\
217 \item [Options. ]
218 Customize the behavior of the plugin in certain ways.
220 \emph {Show Child Variations? } Enable this to mark child variations on the board
221 if there are more than one. Note: variations which don't start with a move are
222 not visible in this way. \\
223 \emph {Disable Idle Poweroff? } Enable this if you do not want the \dap{} to turn
224 off after a certain period of inactivity (depends on your global Rockbox
225 settings). \\
226 \emph {Idle Autosave Time. } Set the amount of idle time to wait before
227 automatically saving any unsaved changes. These autosaves go to the file
228 \fname {"/sgf/gbn\_def.sgf"} regardless of if you have loaded a game or used
229 \emph {Save As} to save the game before or not. Set to \emph {Off} to disable
230 this functionality completely. \\
231 \emph {Automatically Show Comments? } If this is enabled and you navigate to a
232 node containing game comments, they will automatically be displayed. \\
234 \item [Context Menu. ]
235 The menu for choosing different play modes and tools, adding or editing
236 comments, adding pass moves, or switching between sibling variations.
238 \emph {Play Mode. } Play moves normally on the board. If there are
239 child moves from the current node, this mode will let you follow variations
240 by simply playing the first move in the sequence. Unless it is following a
241 variation, this mode will not allow you to play illegal moves. This is the
242 default mode before another is set after loading a game or creating a new
243 one. \\
244 \emph {Add Black Mode. } Add black stones to the board as desired. These
245 stones are not moves and do not perform captures or count as ko threats. \\
246 \emph {Add White Mode. } Add white stones to the board as desired. These
247 stones are not moves and do not perform captures or count as ko threats. \\
248 \emph {Erase Stone Mode. } Remove stones from the board as desired. These
249 removed stones are not counted as captured, they are simply removed. \\
250 \emph {Pass. } Play a single pass move. This does not change the mode of
251 play. \\
252 \emph {Next Variation. } If the game is at the first move in a variation,
253 this will navigate to the next variation after the current one. This is
254 the only way to reach variations which start with adding or removing
255 stones, as you cannot follow them by "playing" the same move. \\
256 \emph {Force Play Mode. } The same as Play Mode except that this mode will
257 allow you to play illegal moves such as retaking a ko immediately without a
258 ko threat, suicide on rulesets which don't allow it (including single stone
259 suicide), and playing a move where there is already a stone. \\
260 \emph {Mark Mode. } Add generic marks to the board, or remove them. \\
261 \emph {Circle Mode. } Add circle marks to the board, or remove them. \\
262 \emph {Square Mode. } Add square marks to the board, or remove them. \\
263 \emph {Triangle Mode. } Add triangle marks to the board, or remove them. \\
264 \emph {Label Mode. } Add one character labels to the board. Each label
265 starts at the letter 'a' and each subsequent application of a label will
266 increment the letter. To remove a label, click on it until it cycles
267 through the allowed letters and disappears. \\
268 \emph {Add/Edit Comment. } Add or edit a comment at the current node. \\
269 \emph {Done. } Go back to the previous screen. \\
270 \end{description}