Add a generic \opt{HAVEREMOTEKEYMAP}{& } to button maps to allow all
[kugel-rb/myfork.git] / manual / plugins / goban.tex
blobdc68f1f55af4994e72146bab64ebd54945bd4b1f
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: \\
35 \begin{tabularx}{\textwidth}{lX}\toprule
36 \textbf{Mark} & \textbf{Meaning} \\ \midrule
37 \emph{+ } & There are nodes after the current node in the SGF tree. \\
38 \emph{* } & There are sibling variations which can be navigated to using the %
39 \emph{Next Variation} menu option of the \emph{Context Menu}%
40 \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,%
41 RECORDER_PAD,MROBE100_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,%
42 IRIVER_H300_PAD}{ or the %
43 \opt{SANSA_E200_PAD,SANSA_C200_PAD}{\ButtonRec}%
44 \opt{SANSA_FUZE_PAD,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{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec} button}. \\
50 \emph{C } & There is a comment at the current node. It can be viewed/edited using
51 the \emph{Add/Edit Comment} menu option of the \emph{Context Menu}. \\
52 \bottomrule
53 \end{tabularx}
55 \subsubsection{Controls}
56 \begin{table}
57 \begin{btnmap}{}{}
58 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
59 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
60 IAUDIO_X5_PAD,RECORDER_PAD,ONDIO_PAD}{\ButtonUp}%
61 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonMenu}%
62 \opt{IRIVER_H10_PAD}{\ButtonScrollUp}
63 \opt{HAVEREMOTEKEYMAP}{& }
64 & Move cursor up \\
65 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
66 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
67 IAUDIO_X5_PAD,RECORDER_PAD,ONDIO_PAD}{\ButtonDown}%
68 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonPlay}%
69 \opt{IRIVER_H10_PAD}{\ButtonScrollDown}
70 \opt{HAVEREMOTEKEYMAP}{& }
71 & Move cursor down \\
72 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,IPOD_1G2G_PAD,%
73 IPOD_3G_PAD,IPOD_4G_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,%
74 IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
75 ONDIO_PAD}{\ButtonLeft}
76 \opt{HAVEREMOTEKEYMAP}{& }
77 & Move cursor left %
78 \opt{ONDIO_PAD}{if in \emph{board} navigation mode, or %
79 retreat one node in the game tree if in %
80 \emph{tree} navigation mode} \\
81 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,IPOD_1G2G_PAD,%
82 IPOD_3G_PAD,IPOD_4G_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,%
83 IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
84 ONDIO_PAD}{\ButtonRight}
85 \opt{HAVEREMOTEKEYMAP}{& }
86 & Move cursor right
87 \opt{ONDIO_PAD}{if in \emph{board} navigation mode, or advance one node in
88 the game tree if in \emph{tree} navigation mode} \\
89 \opt{ONDIO_PAD}{\ButtonOff & Toggle between \emph{board} and \emph{tree}
90 navigation modes \\}
91 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
92 SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,%
93 MROBE100_PAD,IAUDIO_X5_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD}{\ButtonSelect}%
94 \opt{IRIVER_H10_PAD,RECORDER_PAD}{\ButtonPlay}%
95 \opt{ONDIO_PAD}{\ButtonMenu}
96 \opt{HAVEREMOTEKEYMAP}{& }
97 & Play a move (or use a tool if play-mode has been changed). \\
98 \nopt{ONDIO_PAD}{
99 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,%
100 IPOD_4G_PAD}{\ButtonScrollBack}%
101 \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
102 GIGABEAT_S_PAD}{\ButtonVolDown}%
103 \opt{IRIVER_H10_PAD}{\ButtonFF}%
104 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}%
105 \opt{MROBE100_PAD}{\ButtonMenu}%
106 \opt{IAUDIO_X5_PAD}{\ButtonPlay}%
107 \opt{RECORDER_PAD}{\ButtonFOne}
108 \opt{HAVEREMOTEKEYMAP}{& }
109 & Retreat one node in the game tree \\
110 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
111 IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonScrollFwd}%
112 \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
113 GIGABEAT_S_PAD}{\ButtonVolUp}%
114 \opt{IRIVER_H10_PAD}{\ButtonRew}%
115 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn}%
116 \opt{MROBE100_PAD}{\ButtonPlay}%
117 \opt{IAUDIO_X5_PAD}{\ButtonRec}%
118 \opt{RECORDER_PAD}{\ButtonFThree}
119 \opt{HAVEREMOTEKEYMAP}{& }
120 & Advance one node in the game tree \\
122 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
123 IRIVER_H10_PAD,IAUDIO_X5_PAD}{\ButtonPower}%
124 \opt{MROBE100_PAD}{\ButtonDisplay}%
125 \opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{Long \ButtonSelect}%
126 \opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonMenu}%
127 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonMode}%
128 \opt{RECORDER_PAD}{\ButtonFTwo}%
129 \opt{ONDIO_PAD}{Long \ButtonMenu}
130 \opt{HAVEREMOTEKEYMAP}{& }
131 & Main Menu \\
132 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,%
133 IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,%
134 IRIVER_H10_PAD}{%
135 \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
136 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
137 IAUDIO_X5_PAD}{Long \ButtonSelect}%
138 \opt{IRIVER_H10_PAD}{Long \ButtonPlay}
139 \opt{HAVEREMOTEKEYMAP}{& }
140 & Context Menu \\ }
141 \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,RECORDER_PAD,MROBE100_PAD,%
142 GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,SANSA_CLIP_PAD}{%
143 \opt{SANSA_E200_PAD}{\ButtonRec}%
144 \opt{SANSA_FUZE_PAD,SANSA_CLIP_PAD}{\ButtonHome}%
145 \opt{SANSA_C200_PAD}{\ButtonRec}%
146 \opt{RECORDER_PAD}{\ButtonOn}%
147 \opt{MROBE100_PAD}{\ButtonPower}%
148 \opt{GIGABEAT_PAD}{\ButtonA}%
149 \opt{GIGABEAT_S_PAD}{\ButtonPlay}%
150 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec}
151 \opt{HAVEREMOTEKEYMAP}{& }
152 & Go to the next variation when at the first node in a branch \\ }
153 \end{btnmap}
154 \end{table}
156 \subsubsection{Menus}
157 \begin {description}
158 \item [Main Menu. ]
159 The main menu for game setup and access to other menus.
161 \emph {New. } Create a new game with your choice of board size and handicaps. \\
162 \emph {Save. } Save the current state of the game. It will be saved to
163 \fname {"/sgf/gbn\_def.sgf"} unless otherwise set. \\
164 \emph {Save As. } Save to a specified file. \\
165 \emph {Game Info. } View and modify the metadata of the current game. \\
166 \emph {Playback Control. } Control the playback of the current playlist and
167 modify the volume of your player. \\
168 \emph {Zoom Level. } Zoom in or out on the board. If you set the zoom level, it
169 will be saved and used again the next time you open this plugin. \\
170 \emph {Options. } Open the Options Menu. \\
171 \emph {Context Menu. } Open the Context Menu which allows you to set play modes
172 and other tools. \\
173 \emph {Quit. } Leave the plugin. Any unsaved changes are saved to
174 \fname {"/sgf/gbn\_def.sgf"}. \\
176 \item [Game Info. ]
177 The menu for modifying game info (metadata) of the current game. This
178 information will be saved to the SGF file and can be viewed in almost all
179 SGF readers.
181 \emph {Basic Info. } Shows a quick view of the basic game metadata, if any
182 has been set (otherwise does nothing). This option does not allow editing. \\
183 \emph {Time Limit. } The time limit of the current game. \\
184 \emph {Overtime. } The overtime settings of the current game. \\
185 \emph {Result. } The result of the current game. This text must follow the
186 format specified at \url{http://www.red-bean.com/sgf/properties.html#RE} to
187 be read by other SGF readers. Some examples are \emph {B+R} (Black wins by
188 resignation), \emph {B+5.5} (Black wins by 5.5 points), \emph {W+T} (White wins
189 on Time). \\
190 \emph {Handicap. } The handicap of the current game. \\
191 \emph {Komi. } The komi of the current game (compensation to the white
192 player for black having the first move). \\
193 \emph {Ruleset. } The name of the ruleset in use for this game. The \emph{NZ}
194 and \emph{GOE} rulesets include suicide as a legal move (for multi-stone
195 suicide only); the rest do not. \\
196 \emph {Black Player. } The name of the black player. \\
197 \emph {Black Rank. } Black's rank, in dan or kyu. \\
198 \emph {Black Team. } The name of black's team, if any. \\
199 \emph {White Player. } The name of the white player. \\
200 \emph {White Rank. } White's rank, in dan or kyu. \\
201 \emph {White Team. } The name of white's team, if any. \\
202 \emph {Date. } The date that this game took place. This text must follow the
203 format specified at \url{http://www.red-bean.com/sgf/properties.html#DT} to
204 be read by other SGF readers. \\
205 \emph {Event. } The name of the event which this game was a part of, if any.
207 \emph {Place. } The place that this game took place. \\
208 \emph {Round. } If part of a tournament, the round number for this game. \\
209 \emph {Done. } Return to the previous menu. \\
211 \item [Options. ]
212 Customize the behavior of the plugin in certain ways.
214 \emph {Show Child Variations? } Enable this to mark child variations on the board
215 if there are more than one. Note: variations which don't start with a move are
216 not visible in this way. \\
217 \emph {Disable Idle Poweroff? } Enable this if you do not want the \dap{} to turn
218 off after a certain period of inactivity (depends on your global Rockbox
219 settings). \\
220 \emph {Idle Autosave Time. } Set the amount of idle time to wait before
221 automatically saving any unsaved changes. These autosaves go to the file
222 \fname {"/sgf/gbn\_def.sgf"} regardless of if you have loaded a game or used
223 \emph {Save As} to save the game before or not. Set to \emph {Off} to disable
224 this functionality completely. \\
225 \emph {Automatically Show Comments? } If this is enabled and you navigate to a
226 node containing game comments, they will automatically be displayed. \\
228 \item [Context Menu. ]
229 The menu for choosing different play modes and tools, adding or editing
230 comments, adding pass moves, or switching between sibling variations.
232 \emph {Play Mode. } Play moves normally on the board. If there are
233 child moves from the current node, this mode will let you follow variations
234 by simply playing the first move in the sequence. Unless it is following a
235 variation, this mode will not allow you to play illegal moves. This is the
236 default mode before another is set after loading a game or creating a new
237 one. \\
238 \emph {Add Black Mode. } Add black stones to the board as desired. These
239 stones are not moves and do not perform captures or count as ko threats. \\
240 \emph {Add White Mode. } Add white stones to the board as desired. These
241 stones are not moves and do not perform captures or count as ko threats. \\
242 \emph {Erase Stone Mode. } Remove stones from the board as desired. These
243 removed stones are not counted as captured, they are simply removed. \\
244 \emph {Pass. } Play a single pass move. This does not change the mode of
245 play. \\
246 \emph {Next Variation. } If the game is at the first move in a variation,
247 this will navigate to the next variation after the current one. This is
248 the only way to reach variations which start with adding or removing
249 stones, as you cannot follow them by "playing" the same move. \\
250 \emph {Force Play Mode. } The same as Play Mode except that this mode will
251 allow you to play illegal moves such as retaking a ko immediately without a
252 ko threat, suicide on rulesets which don't allow it (including single stone
253 suicide), and playing a move where there is already a stone. \\
254 \emph {Mark Mode. } Add generic marks to the board, or remove them. \\
255 \emph {Circle Mode. } Add circle marks to the board, or remove them. \\
256 \emph {Square Mode. } Add square marks to the board, or remove them. \\
257 \emph {Triangle Mode. } Add triangle marks to the board, or remove them. \\
258 \emph {Label Mode. } Add one character labels to the board. Each label
259 starts at the letter 'a' and each subsequent application of a label will
260 increment the letter. To remove a label, click on it until it cycles
261 through the allowed letters and disappears. \\
262 \emph {Add/Edit Comment. } Add or edit a comment at the current node. \\
263 \emph {Done. } Go back to the previous screen. \\
264 \end{description}