Fully fill the table headers with color
[kugel-rb/myfork.git] / manual / plugins / sudoku.tex
blobb16ebbabbce9b3082f6b6d7fbaa984d69143eaca
1 \subsection{\label{ref:Sudoku}Sudoku}
2 \screenshot{plugins/images/ss-sudoku}{Sudoku}{fig:sudoku}
3 Sudoku in Rockbox can act as both a plugin and a viewer.
4 When starting Sudoku from the \setting{Browse Plugins} menu, a
5 random game will be generated automatically, and an estimate of its difficulty
6 (very easy, easy, medium, hard or fiendish) will be displayed on the screen.
7 New games can be generated from the \setting{Generate} menu option.
8 When ``playing'' an existing Sudoku game file from Rockbox' file browser
9 the plugin is invoked as viewer. The selected Sudoku will get loaded and you
10 can start solving it. The sudoku games need to be stored as text
11 files with the extension \fname{.ss} as single file per game.
13 You can create and save your own grids under the \setting{New} menu option.
14 Enter the menu (as described in the key table below) when you have finished and
15 enter the full path to save to including the \fname{.ss} extension
16 (e.g. \fname{/sudoku/new.ss}).
18 \subsubsection{The scratchpad}
19 When you play Sudoku on paper most people like to mark numbers in cells that
20 are possible candidates for the cells.
21 This can be done with the scratchpad, shown as separate column.
22 Change the number under the cursor to the number you want to put on the
23 scratchpad and press the scratchpad button, the number will then be added.
24 If the number was already on the scratchpad it will get removed again.
25 The column is stored seperatly for every cell on the board. The stored values
26 can be displayed inline as small dots by enabling the \setting{Show Markings}
27 settings.
28 \note{The scratchpad is \emph{not} saved when saving the game.}
30 \begin{table}
31 \begin{btnmap}{}{}
32 \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD%
33 ,SANSA_E200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD}
34 {\ButtonUp{} / \ButtonDown{} / \ButtonLeft{} / \ButtonRight}
35 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonScrollFwd{} / \ButtonScrollBack}
36 \opt{IRIVER_H10_PAD}{\ButtonScrollUp{} / \ButtonScrollDown{} / \ButtonLeft{} / \ButtonRight}
37 \opt{HAVEREMOTEKEYMAP}{& }
38 & Move the cursor\\
40 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonSelect & Change cursor move direction\\}
42 \opt{RECORDER_PAD}{\ButtonPlay}
43 \opt{ONDIO_PAD}{\ButtonMenu}
44 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonSelect{} / \ButtonOn}
45 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonLeft{} / \ButtonRight}
46 \opt{IAUDIO_X5_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD}{\ButtonSelect}
47 \opt{IRIVER_H10_PAD}{\ButtonRew}
48 \opt{SANSA_E200_PAD}{\ButtonScrollBack{} / \ButtonScrollFwd}
49 \opt{SANSA_C200_PAD}{\ButtonSelect{} / \ButtonVolUp{} / \ButtonVolDown}
50 \opt{HAVEREMOTEKEYMAP}{& }
51 & Change number under the cursor\\
53 \opt{RECORDER_PAD}{Long \ButtonPlay}
54 \opt{ONDIO_PAD}{Long \ButtonMenu+\ButtonDown}
55 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{Long \ButtonOn}
56 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{Long \ButtonLeft{} / \ButtonRight}
57 \opt{IAUDIO_X5_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD}{Long \ButtonSelect}
58 \opt{IRIVER_H10_PAD}{Long \ButtonRew}
59 \opt{SANSA_E200_PAD}{Long \ButtonScrollBack{} / \ButtonScrollFwd}
60 \opt{SANSA_C200_PAD}{Long \ButtonSelect{} / \ButtonVolUp{} / \ButtonVolDown}
61 \opt{HAVEREMOTEKEYMAP}{& }
62 & Constantly changing the number under the cursor\\
64 \opt{RECORDER_PAD}{\ButtonFOne}
65 \opt{ONDIO_PAD}{Long \ButtonMenu}
66 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonMode}
67 \opt{IPOD_4G_PAD,IPOD_3G_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD}{\ButtonMenu}
68 \opt{IAUDIO_X5_PAD,IRIVER_H10_PAD}{\ButtonPlay}
69 \opt{SANSA_E200_PAD}{\ButtonSelect}
70 \opt{SANSA_C200_PAD}{\ButtonPower}
71 \opt{HAVEREMOTEKEYMAP}{& }
72 & Open Menu\\
74 \opt{RECORDER_PAD}{\ButtonFTwo}
75 \opt{ONDIO_PAD}{\ButtonMenu+\ButtonLeft}
76 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD,SANSA_C200_PAD}{\ButtonRec}
77 \opt{IPOD_4G_PAD,IPOD_3G_PAD,GIGABEAT_S_PAD}{\ButtonPlay}
78 \opt{IRIVER_H10_PAD}{\ButtonFF}
79 \opt{GIGABEAT_PAD}{\ButtonA}
80 \opt{MROBE100_PAD}{\ButtonDisplay}
81 \opt{HAVEREMOTEKEYMAP}{& }
82 & Add/Remove number to scratchpad\\
84 \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}
85 \opt{IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD%
86 ,MROBE100_PAD}{\ButtonPower}
87 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{Menu $\rightarrow$ Quit}
88 \opt{SANSA_C200_PAD}{Long \ButtonPower}
89 \opt{HAVEREMOTEKEYMAP}{& }
90 & Quit\\
92 \end{btnmap}
93 \end{table}
95 Some places where can you can find \fname{.ss} files:
96 \begin{itemize}
97 \item Simple Sudoku (Advanced Puzzle Packs 1 and 2 located near the bottom of that page):
98 \url{http://www.angusj.com/sudoku/}
99 \item Kjell's Sudoku generator/solver:
100 \url{http://kjell.haxx.se/sudoku/}
101 \end{itemize}