| 1 |
%% Name: hightest.tex |
| 2 |
%% Author: Dirk Baechle |
| 3 |
%% Date: 2003-01-22 |
| 4 |
|
| 5 |
\documentclass[a4paper, twocolumn]{article} |
| 6 |
\usepackage[ps]{skak} |
| 7 |
\tinyboard |
| 8 |
|
| 9 |
\setlength{\parindent}{0pt} |
| 10 |
|
| 11 |
\def\square#1{\texttt{#1}} |
| 12 |
\def\testarrow#1#2{% |
| 13 |
\printarrow{#1}{#2} |
| 14 |
\mbox{\texttt{(#1 -> #2)}}} |
| 15 |
|
| 16 |
\def\testknightmove#1#2{% |
| 17 |
\printknightmove{#1}{#2} |
| 18 |
\mbox{\texttt{(#1 -> #2)}}} |
| 19 |
|
| 20 |
\pagestyle{empty} |
| 21 |
|
| 22 |
\begin{document} |
| 23 |
|
| 24 |
\section{Test of the ``\texttt{highlight}'' command} |
| 25 |
|
| 26 |
In all following boards there should appear |
| 27 |
|
| 28 |
\begin{itemize} |
| 29 |
\item frames on \square{g1}, \square{f2} and \square{e3} |
| 30 |
\item a small cross on \square{a1}, |
| 31 |
\item a large cross on \square{a8}, |
| 32 |
\item a small circle on \square{h1} and |
| 33 |
\item a large circle on \square{h8}. |
| 34 |
\end{itemize} |
| 35 |
|
| 36 |
\subsection{White to move} |
| 37 |
\subsubsection{With notation} |
| 38 |
|
| 39 |
\fenboard{2rr3k/pp3pp1/1nnqbN1p/3pN3/2pP4/2P3Q1/PPB4P/R4RK1 w KQkq - 0 1} |
| 40 |
\centerline{\showboard} |
| 41 |
\highlight{g1,f2,e3} |
| 42 |
\highlight[x]{a1} |
| 43 |
\highlight[X]{a8} |
| 44 |
\highlight[o]{h1} |
| 45 |
\highlight[O]{h8} |
| 46 |
|
| 47 |
\medskip |
| 48 |
\centerline{\showinverseboard} |
| 49 |
\highlight{g1,f2,e3} |
| 50 |
\highlight[x]{a1} |
| 51 |
\highlight[X]{a8} |
| 52 |
\highlight[o]{h1} |
| 53 |
\highlight[O]{h8} |
| 54 |
|
| 55 |
\subsubsection{Without notation} |
| 56 |
\notationOff |
| 57 |
|
| 58 |
\centerline{\showboard} |
| 59 |
\highlight{g1,f2,e3} |
| 60 |
\highlight[x]{a1} |
| 61 |
\highlight[X]{a8} |
| 62 |
\highlight[o]{h1} |
| 63 |
\highlight[O]{h8} |
| 64 |
|
| 65 |
\medskip |
| 66 |
\centerline{\showinverseboard} |
| 67 |
\highlight{g1,f2,e3} |
| 68 |
\highlight[x]{a1} |
| 69 |
\highlight[X]{a8} |
| 70 |
\highlight[o]{h1} |
| 71 |
\highlight[O]{h8} |
| 72 |
|
| 73 |
\subsubsection{With mover} |
| 74 |
\showmoverOn |
| 75 |
\notationOn |
| 76 |
|
| 77 |
\centerline{\showboard} |
| 78 |
\highlight{g1,f2,e3} |
| 79 |
\highlight[x]{a1} |
| 80 |
\highlight[X]{a8} |
| 81 |
\highlight[o]{h1} |
| 82 |
\highlight[O]{h8} |
| 83 |
|
| 84 |
\medskip |
| 85 |
\centerline{\showinverseboard} |
| 86 |
\highlight{g1,f2,e3} |
| 87 |
\highlight[x]{a1} |
| 88 |
\highlight[X]{a8} |
| 89 |
\highlight[o]{h1} |
| 90 |
\highlight[O]{h8} |
| 91 |
|
| 92 |
\notationOff |
| 93 |
\medskip |
| 94 |
\centerline{\showboard} |
| 95 |
\highlight{g1,f2,e3} |
| 96 |
\highlight[x]{a1} |
| 97 |
\highlight[X]{a8} |
| 98 |
\highlight[o]{h1} |
| 99 |
\highlight[O]{h8} |
| 100 |
|
| 101 |
\medskip |
| 102 |
\centerline{\showinverseboard} |
| 103 |
\highlight{g1,f2,e3} |
| 104 |
\highlight[x]{a1} |
| 105 |
\highlight[X]{a8} |
| 106 |
\highlight[o]{h1} |
| 107 |
\highlight[O]{h8} |
| 108 |
|
| 109 |
\subsection{Black to move} |
| 110 |
\subsubsection{With notation} |
| 111 |
\notationOn |
| 112 |
\showmoverOff |
| 113 |
\fenboard{2rr3k/pp3pp1/1nnqbN1p/3pN3/2pP4/2P3Q1/PPB4P/R4RK1 b KQkq - 0 1} |
| 114 |
\centerline{\showboard} |
| 115 |
\highlight{g1,f2,e3} |
| 116 |
\highlight[x]{a1} |
| 117 |
\highlight[X]{a8} |
| 118 |
\highlight[o]{h1} |
| 119 |
\highlight[O]{h8} |
| 120 |
|
| 121 |
\medskip |
| 122 |
\centerline{\showinverseboard} |
| 123 |
\highlight{g1,f2,e3} |
| 124 |
\highlight[x]{a1} |
| 125 |
\highlight[X]{a8} |
| 126 |
\highlight[o]{h1} |
| 127 |
\highlight[O]{h8} |
| 128 |
|
| 129 |
\subsubsection{Without notation} |
| 130 |
\notationOff |
| 131 |
|
| 132 |
\centerline{\showboard} |
| 133 |
\highlight{g1,f2,e3} |
| 134 |
\highlight[x]{a1} |
| 135 |
\highlight[X]{a8} |
| 136 |
\highlight[o]{h1} |
| 137 |
\highlight[O]{h8} |
| 138 |
|
| 139 |
\medskip |
| 140 |
\centerline{\showinverseboard} |
| 141 |
\highlight{g1,f2,e3} |
| 142 |
\highlight[x]{a1} |
| 143 |
\highlight[X]{a8} |
| 144 |
\highlight[o]{h1} |
| 145 |
\highlight[O]{h8} |
| 146 |
|
| 147 |
\subsubsection{With mover} |
| 148 |
\showmoverOn |
| 149 |
\notationOn |
| 150 |
|
| 151 |
\centerline{\showboard} |
| 152 |
\highlight{g1,f2,e3} |
| 153 |
\highlight[x]{a1} |
| 154 |
\highlight[X]{a8} |
| 155 |
\highlight[o]{h1} |
| 156 |
\highlight[O]{h8} |
| 157 |
|
| 158 |
\medskip |
| 159 |
\centerline{\showinverseboard} |
| 160 |
\highlight{g1,f2,e3} |
| 161 |
\highlight[x]{a1} |
| 162 |
\highlight[X]{a8} |
| 163 |
\highlight[o]{h1} |
| 164 |
\highlight[O]{h8} |
| 165 |
|
| 166 |
\notationOff |
| 167 |
\medskip |
| 168 |
\centerline{\showboard} |
| 169 |
\highlight{g1,f2,e3} |
| 170 |
\highlight[x]{a1} |
| 171 |
\highlight[X]{a8} |
| 172 |
\highlight[o]{h1} |
| 173 |
\highlight[O]{h8} |
| 174 |
|
| 175 |
\medskip |
| 176 |
\centerline{\showinverseboard} |
| 177 |
\highlight{g1,f2,e3} |
| 178 |
\highlight[x]{a1} |
| 179 |
\highlight[X]{a8} |
| 180 |
\highlight[o]{h1} |
| 181 |
\highlight[O]{h8} |
| 182 |
|
| 183 |
\section{Test of the ``\texttt{printarrow}'' command} |
| 184 |
|
| 185 |
%% Init board |
| 186 |
\notationOn |
| 187 |
\showmoverOff |
| 188 |
\fenboard{2rr3k/pp3pp1/1nnqbN1p/3pN3/2pP4/2P3Q1/PPB4P/R4RK1 w KQkq - 0 1} |
| 189 |
|
| 190 |
\subsection{From lower to upper half} |
| 191 |
|
| 192 |
\centerline{\showboard} |
| 193 |
\testarrow{a1}{a8} |
| 194 |
\testarrow{f3}{e6} |
| 195 |
\testarrow{g4}{h7} |
| 196 |
|
| 197 |
\newpage |
| 198 |
\centerline{\showinverseboard} |
| 199 |
\testarrow{a1}{a8} |
| 200 |
\testarrow{f3}{e6} |
| 201 |
\testarrow{g4}{h7} |
| 202 |
|
| 203 |
\subsection{From upper to lower half} |
| 204 |
\centerline{\showboard} |
| 205 |
\testarrow{h8}{h1} |
| 206 |
\testarrow{f7}{c2} |
| 207 |
\testarrow{b6}{g3} |
| 208 |
|
| 209 |
\medskip |
| 210 |
\centerline{\showinverseboard} |
| 211 |
\testarrow{h8}{h1} |
| 212 |
\testarrow{f7}{c2} |
| 213 |
\testarrow{b6}{g3} |
| 214 |
|
| 215 |
\subsection{From left to right half} |
| 216 |
\centerline{\showboard} |
| 217 |
\testarrow{a1}{h1} |
| 218 |
\testarrow{b2}{h8} |
| 219 |
\testarrow{c7}{g3} |
| 220 |
|
| 221 |
\medskip |
| 222 |
\centerline{\showinverseboard} |
| 223 |
\testarrow{a1}{h1} |
| 224 |
\testarrow{b2}{h8} |
| 225 |
\testarrow{c7}{g3} |
| 226 |
|
| 227 |
\subsection{From right to left half} |
| 228 |
\centerline{\showboard} |
| 229 |
\testarrow{h8}{a8} |
| 230 |
\testarrow{g6}{a4} |
| 231 |
\testarrow{f3}{c5} |
| 232 |
|
| 233 |
\medskip |
| 234 |
\centerline{\showinverseboard} |
| 235 |
\testarrow{h8}{a8} |
| 236 |
\testarrow{g6}{a4} |
| 237 |
\testarrow{f3}{c5} |
| 238 |
|
| 239 |
\section{Test of the ``\texttt{printknightmove}'' command} |
| 240 |
|
| 241 |
\subsection{Upwards} |
| 242 |
\centerline{\showboard} |
| 243 |
\testknightmove{d4}{b5} |
| 244 |
\testknightmove{d4}{c6} |
| 245 |
\testknightmove{d4}{e6} |
| 246 |
\testknightmove{d4}{f5} |
| 247 |
|
| 248 |
\medskip |
| 249 |
\centerline{\showinverseboard} |
| 250 |
\testknightmove{d4}{b5} |
| 251 |
\testknightmove{d4}{c6} |
| 252 |
\testknightmove{d4}{e6} |
| 253 |
\testknightmove{d4}{f5} |
| 254 |
|
| 255 |
\subsection{Downwards} |
| 256 |
\centerline{\showboard} |
| 257 |
\testknightmove{e6}{c5} |
| 258 |
\testknightmove{e6}{d4} |
| 259 |
\testknightmove{e6}{f4} |
| 260 |
\testknightmove{e6}{g5} |
| 261 |
|
| 262 |
\medskip |
| 263 |
\centerline{\showinverseboard} |
| 264 |
\testknightmove{e6}{c5} |
| 265 |
\testknightmove{e6}{d4} |
| 266 |
\testknightmove{e6}{f4} |
| 267 |
\testknightmove{e6}{g5} |
| 268 |
|
| 269 |
\subsection{To the right} |
| 270 |
\centerline{\showboard} |
| 271 |
\testknightmove{b4}{c6} |
| 272 |
\testknightmove{b4}{d5} |
| 273 |
\testknightmove{b4}{d3} |
| 274 |
\testknightmove{b4}{c2} |
| 275 |
|
| 276 |
\medskip |
| 277 |
\centerline{\showinverseboard} |
| 278 |
\testknightmove{b4}{c6} |
| 279 |
\testknightmove{b4}{d5} |
| 280 |
\testknightmove{b4}{d3} |
| 281 |
\testknightmove{b4}{c2} |
| 282 |
|
| 283 |
\subsection{To the left} |
| 284 |
\centerline{\showboard} |
| 285 |
\testknightmove{f5}{e7} |
| 286 |
\testknightmove{f5}{d6} |
| 287 |
\testknightmove{f5}{d4} |
| 288 |
\testknightmove{f5}{e3} |
| 289 |
|
| 290 |
\medskip |
| 291 |
\centerline{\showinverseboard} |
| 292 |
\testknightmove{f5}{e7} |
| 293 |
\testknightmove{f5}{d6} |
| 294 |
\testknightmove{f5}{d4} |
| 295 |
\testknightmove{f5}{e3} |
| 296 |
|
| 297 |
\subsection{From the corners} |
| 298 |
\centerline{\showboard} |
| 299 |
\testknightmove{a1}{b3} |
| 300 |
\testknightmove{a1}{c2} |
| 301 |
\testknightmove{a8}{c7} |
| 302 |
\testknightmove{a8}{b6} |
| 303 |
\testknightmove{h8}{g6} |
| 304 |
\testknightmove{h8}{f7} |
| 305 |
\testknightmove{h1}{g3} |
| 306 |
\testknightmove{h1}{f2} |
| 307 |
|
| 308 |
\end{document} |
| 309 |
|