148 lines
2.8 KiB
TeX
Raw Normal View History

2023-09-28 12:12:05 -07:00
% use [nosolutions] flag to hide solutions.
% use [solutions] flag to show solutions.
\documentclass[
solutions,
shortwarning
]{../../resources/ormc_handout}
2023-10-17 18:32:10 -07:00
\usepackage{../../resources/macros}
2023-09-28 12:12:05 -07:00
\usepackage{chessfss}
\usepackage{chessboard}
2023-10-26 08:14:55 -07:00
\usepackage{anyfontsize} % Silences some chess warnings
2023-09-28 12:12:05 -07:00
\usepackage{afterpage}
\usepackage[hang]{footmisc}
2023-12-05 17:31:19 -08:00
% A row of stars, for showing difficulty
% first arg: filled stars
% second arg: total stars
\def\liststars#1#2{%
\def\oncolor{\color{ogrape}}%
\def\offcolor{\color{white}}%
%
\count255=1%
\count254=#2%
\advance\count254 by -1%
\ifnum #1 > 0
% The $$ are required around \bigstar.
% the special \odot chess piece breaks
% star sizing if they are ommited.
\loop
{\oncolor $\bigstar$}%
\ifnum\count255 < #1
\advance\count255 by 1
\repeat%
\else%
{\oncolor $\bigstar$}%
\fi%
%
\ifnum \count255 < #2%
\loop
{\offcolor $\bigstar$}%
\ifnum\count255 < \count254
\advance\count255 by 1
\repeat%
\fi%
}
\def\startimes#1{
{\color{ogrape} $\bigstar \times #1$}
}
\def\starvalue#1{
\stars{#1}{#1} \par
\vspace{1mm}
}
2023-09-28 12:12:05 -07:00
\def\difficulty#1#2{
\textbf{Difficulty:} \stars{#1}{#2} \par
\vspace{1mm}
}
\def\difficultynote#1#2#3{
\textbf{Difficulty:} \stars{#1}{#2} ~ #3\par
\vspace{1mm}
}
\setchessboard{
showmover=false,
borderwidth=0.5mm,
label=false,
labelleft=true,
labelbottom=true,
normalboard,
hlabelformat=\arabic{ranklabel},
vlabelformat=\Alph{filelabel}
}
\makeatletter
\cbDefineNewPiece{white}{U}
{\raisebox{1.75mm}{\cfss@whitepiececolor
$\odot$}}
{\BlackEmptySquare%
\makebox[0pt][r]{\cfss@whitepiececolor
\raisebox{1.75mm}{\makebox[1em]{$\odot$}}}}
\long\def\manyboards#1{
\if@solutions
\chessboard[setpieces = {#1}]
\hfill
\chessboard[setpieces = {#1}]
\else
\vfill
\chessboard[setpieces = {#1}]
\hfill
\chessboard[setpieces = {#1}]
\vfill
\chessboard[setpieces = {#1}]
\hfill
\chessboard[setpieces = {#1}]
\fi
}
2023-12-05 17:31:19 -08:00
\@makeORMCbox{hintlist}
{Available Hints}
{black!12!white}
{black!80!white}
\long\def\hintcontent#1#2#3{
\if@solutions
\liststars{#1}{#2} \par #3
\else
\liststars{#1}{#2}
\fi\par
}
\makeatother
2023-09-28 12:12:05 -07:00
\uptitlel{Advanced 2}
2023-10-03 11:28:38 -07:00
\uptitler{Fall 2023}
2023-09-28 12:12:05 -07:00
\title{Retrograde Analysis}
\subtitle{
2023-10-17 18:32:10 -07:00
Prepared by \githref{Mark} on \today{} \\
2023-09-28 12:12:05 -07:00
Based on books\footnotemark{} by Raymond Smullyan
}
\begin{document}
\maketitle
\footnotetext[1]{
Most of the easy problems in this handout are from \textit{The Chess Mysteries of Sherlock Holmes}.\\
The rest are from \textit{The Chess Mysteries of the Arabian Knights}.
}
2023-12-06 12:10:37 -08:00
\input{parts/00 rules}
\input{parts/01 intro}
\input{parts/02 easy}
\input{parts/03 medium}
%\input{parts/04 hard}
2023-09-28 12:12:05 -07:00
\chessboard \hfill \chessboard \par
\chessboard \hfill \chessboard \par
\chessboard \hfill \chessboard \par
\end{document}