Bump current version to 3.12
[maemo-rb.git] / manual / plugins / goban.tex
blob4e98ed3a814fd713a297337f0c0dabe9a2ee661c
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. You can find a short introduction to Go at
6 \url{http://senseis.xmp.net/?WhatIsGo} and more information about SGF files
7 can be read at \url{http://senseis.xmp.net/?SmartGameFormat} or the SGF
8 specification at \url{http://www.red-bean.com/sgf/}.\\
10 This plugin can load all modern SGF files (file format 3 or 4) with few problems.
11 It attempts to preserve SGF properties which it doesn't understand, and most common
12 SGF properties are handled fully. It is possible to view (and edit if you like)
13 Kogo's Joseki Dictionary (\url{http://waterfire.us/joseki.htm}) with this plugin,
14 although the load and save times can be on the order of a minute or two on
15 particularly slow devices. Large SGF files may stop audio playback for the duration
16 of the plugin's run in order to free up more memory and some very large SGF files will
17 not even load on devices with little available memory.\\
19 \note{The plugin does \emph{NOT} support SGF files with multiple games in
20 one file. These are rare, but if you have one don't even try it (the file will most
21 likely be corrupted if you save over it). You have been warned.\\}
23 The file \fname {/sgf/gbn\_def.sgf} is used by the plugin to store any unsaved
24 changes in the most recently loaded game. This means that if you forget to save your
25 changes, you should load \fname {/sgf/gbn\_def.sgf} immediately to offload the changes
26 to another file. If you load another file first then your changes will be lost
27 permanently. The \fname {/sgf/gbn\_def.sgf} file is also the file loaded if another
28 is not selected.\\
30 The information panel which displays the current move number may also contain
31 these markers:
33 \begin{table}
34 \begin{rbtabular}{\textwidth}{lX}%
35 {\textbf{Mark} & \textbf{Meaning}}{}{}
36 \emph{+ } & There are nodes after the current node in the SGF tree. \\
37 \emph{* } & There are sibling variations which can be navigated to using the %
38 \emph{Next Variation} menu option of the \emph{Context Menu}%
39 \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_CLIP_PAD,%
40 RECORDER_PAD,MROBE100_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,%
41 IRIVER_H300_PAD,PBELL_VIBE500_PAD,MPIO_HD200_PAD,SANSA_FUZEPLUS_PAD}{ or the %
42 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomRight}%
43 \opt{SANSA_E200_PAD,SANSA_C200_PAD}{\ButtonRec}%
44 \opt{SANSA_CLIP_PAD}{\ButtonHome}%
45 \opt{RECORDER_PAD}{\ButtonOn}%
46 \opt{MROBE100_PAD}{\ButtonPower}%
47 \opt{GIGABEAT_PAD}{\ButtonA}%
48 \opt{GIGABEAT_S_PAD}{\ButtonPlay}%
49 \opt{PBELL_VIBE500_PAD}{\ButtonCancel}%
50 \opt{MPIO_HD200_PAD}{Long \ButtonFunc}%
51 \opt{MPIO_HD300_PAD}{\ButtonMenu}%
52 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec} button}. \\
53 \emph{C } & There is a comment at the current node. It can be viewed/edited using
54 the \emph{Add/Edit Comment} menu option of the \emph{Context Menu}. \\
55 \end{rbtabular}
56 \end{table}
58 \subsubsection{Controls}
59 \begin{btnmap}
60 \nopt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,IRIVER_H10_PAD,%
61 MPIO_HD200_PAD,MPIO_HD300_PAD,touchscreen}{\ButtonUp}%
62 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonMenu}%
63 \opt{IRIVER_H10_PAD,MPIO_HD300_PAD}{\ButtonScrollUp}
64 \opt{MPIO_HD200_PAD}{\ButtonRew}
65 \opt{touchscreen}{\TouchTopMiddle}
67 \opt{HAVEREMOTEKEYMAP}{
69 Move cursor up
72 \nopt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,IRIVER_H10_PAD,%
73 MPIO_HD200_PAD,MPIO_HD300_PAD,touchscreen}{\ButtonDown}%
74 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonPlay}%
75 \opt{IRIVER_H10_PAD,MPIO_HD300_PAD}{\ButtonScrollDown}
76 \opt{MPIO_HD200_PAD}{\ButtonFF}
77 \opt{touchscreen}{\TouchBottomMiddle}
79 \opt{HAVEREMOTEKEYMAP}{
81 Move cursor down
84 \nopt{MPIO_HD200_PAD,MPIO_HD300_PAD,touchscreen}{\ButtonLeft}
85 \opt{MPIO_HD200_PAD}{\ButtonVolDown}
86 \opt{MPIO_HD300_PAD}{\ButtonRew}
87 \opt{touchscreen}{\TouchMidLeft}
89 \opt{HAVEREMOTEKEYMAP}{
91 Move cursor left
92 \opt{ONDIO_PAD}{if in \emph{board} navigation mode, or retreat one
93 node in the game tree if in \emph{tree} navigation mode}
96 \nopt{MPIO_HD200_PAD,MPIO_HD300_PAD,touchscreen}{\ButtonRight}
97 \opt{MPIO_HD200_PAD}{\ButtonVolUp}
98 \opt{MPIO_HD300_PAD}{\ButtonFF}
99 \opt{touchscreen}{\TouchMidRight}
101 \opt{HAVEREMOTEKEYMAP}{
103 Move cursor right
104 \opt{ONDIO_PAD}{if in \emph{board} navigation mode, or advance one
105 node in the game tree if in \emph{tree} navigation mode}
108 \opt{ONDIO_PAD}{
109 \ButtonOff
111 Toggle between \emph{board} and \emph{tree} navigation modes
115 \nopt{IRIVER_H10_PAD,ONDIO_PAD,RECORDER_PAD,IAUDIO_M3_PAD,PBELL_VIBE500_PAD%
116 ,MPIO_HD200_PAD,MPIO_HD300_PAD,touchscreen}{%
117 \ButtonSelect}%
118 \opt{IRIVER_H10_PAD,RECORDER_PAD,PBELL_VIBE500_PAD}{\ButtonPlay}%
119 \opt{ONDIO_PAD}{\ButtonMenu}
120 \opt{MPIO_HD200_PAD}{\ButtonFunc}
121 \opt{MPIO_HD300_PAD}{\ButtonEnter}
122 \opt{touchscreen}{\TouchCenter}
124 \opt{HAVEREMOTEKEYMAP}{
126 Play a move (or use a tool if play-mode has been changed).
129 \nopt{ONDIO_PAD}{
130 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD%
131 ,IPOD_4G_PAD}{\ButtonScrollBack}%
132 \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD%
133 ,GIGABEAT_S_PAD}{\ButtonVolDown}%
134 \opt{IRIVER_H10_PAD}{\ButtonFF}%
135 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}%
136 \opt{MROBE100_PAD}{\ButtonMenu}%
137 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBack}%
138 \opt{IAUDIO_X5_PAD}{\ButtonPlay}%
139 \opt{RECORDER_PAD}{\ButtonFOne}
140 \opt{touchscreen}{\TouchBottomLeft}
141 \opt{PBELL_VIBE500_PAD}{\ButtonOK{} + \ButtonLeft}
142 \opt{MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonRec + \ButtonRew}
144 \opt{HAVEREMOTEKEYMAP}{
146 Retreat one node in the game tree
149 \opt{scrollwheel}{\ButtonScrollFwd}%
150 \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD%
151 ,GIGABEAT_S_PAD}{\ButtonVolUp}%
152 \opt{IRIVER_H10_PAD}{\ButtonRew}%
153 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn}%
154 \opt{MROBE100_PAD,SANSA_FUZEPLUS_PAD}{\ButtonPlay}%
155 \opt{IAUDIO_X5_PAD}{\ButtonRec}%
156 \opt{RECORDER_PAD}{\ButtonFThree}
157 \opt{touchscreen}{\TouchBottomRight}
158 \opt{PBELL_VIBE500_PAD}{\ButtonOK{} + \ButtonRight}
159 \opt{MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonRec + \ButtonFF}
161 \opt{HAVEREMOTEKEYMAP}{
163 Advance one node in the game tree
167 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD%
168 ,SANSA_C200_PAD,IRIVER_H10_PAD,IAUDIO_X5_PAD,SANSA_FUZEPLUS_PAD%
169 }{\ButtonPower}%
170 \opt{MROBE100_PAD}{\ButtonDisplay}%
171 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{Long \ButtonSelect}%
172 \opt{GIGABEAT_PAD,GIGABEAT_S_PAD,PBELL_VIBE500_PAD,MPIO_HD300_PAD}%
173 {\ButtonMenu}%
174 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonMode}%
175 \opt{RECORDER_PAD}{\ButtonFTwo}%
176 \opt{ONDIO_PAD}{Long \ButtonMenu}
177 \opt{MPIO_HD200_PAD}{Long \ButtonPlay}
178 \opt{touchscreen}{\TouchTopLeft}
180 \opt{HAVEREMOTEKEYMAP}{
182 Main Menu
185 % \nopt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,ONDIO_PAD,RECORDER_PAD}{%
186 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD%
187 ,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,IRIVER_H10_PAD%
188 ,MPIO_HD200_PAD,PBELL_VIBE500_PAD,touchscreen,SANSA_FUZEPLUS_PAD}{%
189 \nopt{IRIVER_H10_PAD,touchscreen,PBELL_VIBE500_PAD,%
190 MPIO_HD200_PAD,MPIO_HD300_PAD,SANSA_FUZEPLUS_PAD}{Long \ButtonSelect}%
191 \opt{IRIVER_H10_PAD}{Long \ButtonPlay}
192 \opt{touchscreen}{Long \TouchCenter}
193 \opt{PBELL_VIBE500_PAD}{\ButtonOK}
194 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomLeft}
195 \opt{MPIO_HD200_PAD}{Long \ButtonFunc}
196 \opt{MPIO_HD300_PAD}{Long \ButtonEnter}
198 \opt{HAVEREMOTEKEYMAP}{
200 Context Menu
204 \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,RECORDER_PAD,MROBE100_PAD%
205 ,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,SANSA_CLIP_PAD%
206 ,PBELL_VIBE500_PAD,MPIO_HD200_PAD,touchscreen,SANSA_FUZEPLUS_PAD}{%
207 \opt{SANSA_E200_PAD,SANSA_C200_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD%
208 ,MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonRec}%
209 \opt{SANSA_FUZE_PAD,SANSA_CLIP_PAD}{\ButtonHome}%
210 \opt{RECORDER_PAD}{\ButtonOn}%
211 \opt{MROBE100_PAD}{\ButtonPower}%
212 \opt{GIGABEAT_PAD}{\ButtonA}%
213 \opt{GIGABEAT_S_PAD}{\ButtonPlay}%
214 \opt{touchscreen}{\TouchTopRight}%
215 \opt{PBELL_VIBE500_PAD}{\ButtonCancel}%
216 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomRight}%
218 \opt{HAVEREMOTEKEYMAP}{
220 Go to the next variation when at the first node in a branch
223 \end{btnmap}
225 \subsubsection{Menus}
226 \begin {description}
227 \item [Main Menu. ]
228 The main menu for game setup and access to other menus.
229 \begin{description}
230 \item[New.] Create a new game with your choice of board size and handicaps.
231 \item[Save.] Save the current state of the game. It will be saved to
232 \fname {/sgf/gbn\_def.sgf} unless otherwise set.
233 \item[Save As.] Save to a specified file.
234 \item[Game Info.] View and modify the metadata of the current game.
235 \item[Playback Control.] Control the playback of the current playlist
236 and modify the volume of your player.
237 \item[Zoom Level.] Zoom in or out on the board. If you set the zoom level,
238 it will be saved and used again the next time you open this plugin.
239 \item[Options.] Open the Options Menu.
240 \item[Context Menu.] Open the Context Menu which allows you to set play
241 modes and other tools.
242 \item[Quit.] Leave the plugin. Any unsaved changes are saved to
243 \fname {/sgf/gbn\_def.sgf}.
244 \end{description}
245 \item [Game Info. ]
246 The menu for modifying game info (metadata) of the current game. This
247 information will be saved to the SGF file and can be viewed in almost all
248 SGF readers.
249 \begin{description}
250 \item[Basic Info.] Shows a quick view of the basic game metadata, if any
251 has been set (otherwise does nothing). This option does not allow
252 editing.
253 \item[Time Limit.] The time limit of the current game.
254 \item[Overtime.] The overtime settings of the current game.
255 \item[Result.] The result of the current game. This text must follow the
256 format specified at \url{http://www.red-bean.com/sgf/properties.html#RE}
257 to be read by other SGF readers. Some examples are
258 \emph {B+R} (Black wins by resignation),
259 \emph {B+5.5} (Black wins by 5.5 points),
260 \emph {W+T} (White wins on Time).
261 \item[Handicap.] The handicap of the current game.
262 \item[Komi.] The komi of the current game (compensation to the white
263 player for black having the first move).
264 \item[Ruleset.] The name of the ruleset in use for this game.
265 The \emph{NZ} and \emph{GOE} rulesets include suicide as a legal
266 move (for multi-stone suicide only); the rest do not.
267 \item[Black Player.] The name of the black player.
268 \item[Black Rank.] Black's rank, in dan or kyu.
269 \item[Black Team.] The name of black's team, if any.
270 \item[White Player.] The name of the white player.
271 \item[White Rank.] White's rank, in dan or kyu.
272 \item[White Team.] The name of white's team, if any.
273 \item[Date.] The date that this game took place. This text must follow
274 the format specified at \url{http://www.red-bean.com/sgf/properties.html#DT}
275 to be read by other SGF readers.
276 \item[Event.] The name of the event which this game was a part of, if any.
277 \item[Place.] The place that this game took place.
278 \item[Round.] If part of a tournament, the round number for this game.
279 \item[Done.] Return to the previous menu.
280 \end{description}
282 \item [Options. ]
283 Customize the behavior of the plugin in certain ways.
284 \begin{description}
285 \item[Show Child Variations?] Enable this to mark child variations on
286 he board if there are more than one. Note: variations which don't
287 start with a move are not visible in this way.
288 \item[Disable Idle Poweroff?] Enable this if you do not want the \dap{}
289 to turn off after a certain period of inactivity (depends on your
290 global Rockbox settings).
291 \item[Idle Autosave Time.] Set the amount of idle time to wait before
292 automatically saving any unsaved changes. These autosaves go to
293 the file \fname {/sgf/gbn\_def.sgf} regardless of if you have
294 loaded a game or used \setting{Save As} to save the game before or
295 not. Set to \setting{Off} to disable this functionality completely.
296 \item[Automatically Show Comments?] If this is enabled and you navigate
297 to a node containing game comments, they will automatically be
298 displayed.
299 \end{description}
301 \item [Context Menu. ]
302 The menu for choosing different play modes and tools, adding or editing
303 comments, adding pass moves, or switching between sibling variations.
304 \begin{description}
305 \item[Play Mode.] Play moves normally on the board. If there are child
306 moves from the current node, this mode will let you follow
307 variations by simply playing the first move in the sequence.
308 Unless it is following a variation, this mode will not allow you to
309 play illegal moves. This is the default mode before another is set
310 after loading a game or creating a new one.
311 \item[Add Black Mode.] Add black stones to the board as desired. These
312 stones are not moves and do not perform captures or count as ko threats.
313 \item[Add White Mode.] Add white stones to the board as desired. These
314 stones are not moves and do not perform captures or count as ko threats.
315 \item[Erase Stone Mode.] Remove stones from the board as desired. These
316 removed stones are not counted as captured, they are simply removed.
317 \item[Pass.] Play a single pass move. This does not change the mode of
318 play.
319 \item[Next Variation.] If the game is at the first move in a variation,
320 this will navigate to the next variation after the current one. This
321 is the only way to reach variations which start with adding or
322 removing stones, as you cannot follow them by ``playing'' the same move.
323 \item[Force Play Mode.] The same as Play Mode except that this mode will
324 allow you to play illegal moves such as retaking a ko immediately
325 without a ko threat, suicide on rulesets which don't allow it
326 (including single stone suicide), and playing a move where there
327 is already a stone.
328 \item[Mark Mode.] Add generic marks to the board, or remove them.
329 \item[Circle Mode.] Add circle marks to the board, or remove them.
330 \item[Square Mode.] Add square marks to the board, or remove them.
331 \item[Triangle Mode.] Add triangle marks to the board, or remove them.
332 \item[Label Mode.] Add one character labels to the board. Each label
333 starts at the letter `a' and each subsequent application of a label
334 will increment the letter. To remove a label, click on it until it
335 cycles through the allowed letters and disappears.
336 \item[Add/Edit Comment.] Add or edit a comment at the current node.
337 \item[Done.] Go back to the previous screen.
338 \end{description}
339 \end{description}