diff --git a/Advanced/Retrograde Analysis/chess-setup.tex b/Advanced/Retrograde Analysis/chess-setup.tex index c5ac4da..a622a92 100644 --- a/Advanced/Retrograde Analysis/chess-setup.tex +++ b/Advanced/Retrograde Analysis/chess-setup.tex @@ -14,17 +14,28 @@ \chessboard[setpieces = {#1}] \hfill \chessboard[setpieces = {#1}] + \par +} + +\long\def\sixboards#1{ + \twoboards{#1} + \vfill + \twoboards{#1} + \vfill + \twoboards{#1} } \makeatletter \long\def\manyboards#1{ - \if@solutions - \twoboards{#1} + \ifextras + \sixboards{#1} \else - \vfill - \twoboards{#1} - \vfill - \twoboards{#1} + \if@solutions + \twoboards{#1} + \else + \twoboards{#1} + \twoboards{#1} + \fi \fi } diff --git a/Advanced/Retrograde Analysis/main.tex b/Advanced/Retrograde Analysis/main.tex index 66eb9c6..120df4a 100755 --- a/Advanced/Retrograde Analysis/main.tex +++ b/Advanced/Retrograde Analysis/main.tex @@ -1,12 +1,32 @@ % use [nosolutions] flag to hide solutions. % use [solutions] flag to show solutions. \documentclass[ - solutions, - shortwarning + solutions ]{../../resources/ormc_handout} \usepackage{../../resources/macros} +% If true, this will be an "extras" handout +% (minimal, extra copies of chessboards.) +% +% This assumes nosolutions. +\newif\ifextras +\extrasfalse + + + +\ifextras + % Force-disable page numbers + % and leave bit more room for the six chessboards. + + \pagestyle{empty} + \geometry{ + bottom = 20mm, + footskip = 5mm, + } +\fi + + \usepackage{chessfss} \usepackage{chessboard} \usepackage{anyfontsize} % Silences some chess warnings @@ -14,6 +34,9 @@ \usepackage[hang]{footmisc} + + + % Modify default tab positions for better stars in score decomposition \TabPositions{1.2cm, 2cm, 3cm, 4cm, 5cm, 6cm, 7cm, 8cm} @@ -28,6 +51,10 @@ {black!12!white} {black!80!white} + +\ifextras + \excludecomment{hintlist} +\else \newenvironment{hintlist}{ \begin{@hintlist} }{ @@ -35,6 +62,8 @@ \if@solutions\vspace{-2mm}\fi \end{@hintlist} } +\fi + \long\def\hintcontent#1{ \if@solutions @@ -60,21 +89,25 @@ \begin{document} - \maketitle + \ifextras\else + \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}. - } + \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}. + } - - \input{parts/00 rules} - \input{parts/01 intro} + \input{parts/00 rules} + \input{parts/01 intro} + \fi + \input{parts/02 easy} \input{parts/03 medium} %\input{parts/04 hard} - \chessboard \hfill \chessboard \par - \chessboard \hfill \chessboard \par - \chessboard \hfill \chessboard \par + + \ifextras + \sixboards{} + \vfill\pagebreak + \fi \end{document} \ No newline at end of file diff --git a/Advanced/Retrograde Analysis/parts/00 rules.tex b/Advanced/Retrograde Analysis/parts/00 rules.tex index 2f3ec62..a196467 100644 --- a/Advanced/Retrograde Analysis/parts/00 rules.tex +++ b/Advanced/Retrograde Analysis/parts/00 rules.tex @@ -16,7 +16,7 @@ If you solve the problem on your own, your team gets four points. \par There are two ways you can ask for assistance: \par \begin{itemize}[itemsep=1mm] - \item First, you may uncover a hint to a part for $\lceil 0.5 \times \text{that part's value} \rceil$ stars. \par + \item You may uncover a hint to a part for $\lceil 0.5 \times \text{that part's value} \rceil$ stars. \par In this problem, the hints for both part 1 and 2 cost 1 star each. \par These are always provided in order---you must solve or uncover part 1 to get a hint for part 2. @@ -43,7 +43,7 @@ There are two ways you can ask for assistance: \par \vspace{1cm} Each \say{part} corresponds to one hint in the instructor's handout. \par -(\say{Done} is not a hint, it is simply a bonus for completing the problem). +\say{Done} is not a hint, it is simply a bonus for completing the problem. diff --git a/Advanced/Retrograde Analysis/parts/02 easy.tex b/Advanced/Retrograde Analysis/parts/02 easy.tex index 46964f4..a1c4d45 100644 --- a/Advanced/Retrograde Analysis/parts/02 easy.tex +++ b/Advanced/Retrograde Analysis/parts/02 easy.tex @@ -1,19 +1,21 @@ -\section{Simple problems} - +\ifextras\else + \section{Simple problems} +\fi % Sherlock, A little exercise \problem{A little exercise} %\difficulty{1}{5} \onestars{3} - Black has just moved in the game below. White started on the south side of the board.\par What was Black's last move, and what was White's last move? \par +\ifextras\else \note[Note]{ The boards below are identical copies. Scribble to your heart's content.\\ There a few empty boards at the end of this handout as well. } +\fi \manyboards{ ka8,Kc8, @@ -24,7 +26,7 @@ What was Black's last move, and what was White's last move? \par \begin{hintlist} Part 1: \tab\threestars{0}{1}{2} \par \hintcontent{ - What was Black's last move? What White do to make this happen? + What was Black's last move? What did White do to make this happen? } Part 2: \tab\threestars{1}{1}{1} \par @@ -93,7 +95,8 @@ As before, White started on the bottom of the board. Part 2: \tab\threestars{1}{1}{2} \par \hintcontent{ - It castled kingside (how do we know?). Now, how did it get off G1? + It castled kingside (how do we know?) \par + Now, how did it get off G1? } \vspace{2mm} @@ -461,7 +464,7 @@ Which bishop was it, and what did it capture? \par \end{itemize} } - Part 3: \tab\threestars{3}{2}{3} \par + Part 3: \tab\threestars{3}{3}{2} \par \hintcontent{ \begin{itemize} \item ...the black pawn on G7 captured a white piece on H6. @@ -470,7 +473,7 @@ Which bishop was it, and what did it capture? \par } \vspace{2mm} - Done: \tab\threestars{5}{3}{0} + Done: \tab\threestars{6}{2}{0} \end{hintlist} diff --git a/Advanced/Retrograde Analysis/parts/03 medium.tex b/Advanced/Retrograde Analysis/parts/03 medium.tex index 1fd056a..f0f9907 100644 --- a/Advanced/Retrograde Analysis/parts/03 medium.tex +++ b/Advanced/Retrograde Analysis/parts/03 medium.tex @@ -1,4 +1,6 @@ -\section{Slightly harder problems} +\ifextras\else + \section{Slightly harder problems} +\fi % Sherlock, A matter of direction \problem{A matter of direction} @@ -17,12 +19,12 @@ Did White start on the north or south side of the board? \par } \begin{hintlist} - Part 1: \tab\threestars{0}{1}{3} \par + Part 1: \tab\threestars{0}{2}{2} \par \hintcontent{ The bishop on H1 is important. How did White deliver this check? } \vspace{2mm} - Done: \tab\threestars{1}{3}{0} + Done: \tab\threestars{2}{2}{0} \end{hintlist} \begin{solution} @@ -164,7 +166,7 @@ White to move. Which side of the board did each color start on? \par } \begin{hintlist} - Part 1: \tab\threestars{0}{5}{5} \par + Part 1: \tab\threestars{0}{6}{3} \par \hintcontent{ Double-checks make all positions seem impossible... \par Try E1 and F2 anyway. Can you add pieces to make it make sense? \par @@ -172,7 +174,7 @@ White to move. Which side of the board did each color start on? \par } \vspace{2mm} - Done: \tab\threestars{5}{5}{0} + Done: \tab\threestars{6}{3}{0} \end{hintlist} \begin{solution} @@ -221,7 +223,8 @@ White to move. Which side of the board did each color start on? \par There is a piece at G4, marked with a $\odot$. \par What is it, and what is its color? \par -\twoboards{ + +\manyboards{ ra8,ke8,rh8, pc7,pd7, pb6, @@ -234,19 +237,19 @@ What is it, and what is its color? \par \begin{hintlist} - Part 1: \tab\threestars{0}{1}{19} \par + Part 1: \tab\threestars{0}{2}{18} \par \hintcontent{ What color is the missing piece? Count captures.\par Look at the region bounded by A1 and B3. How did the bishop get there? } - Part 2: \tab\threestars{1}{1}{18} \par + Part 2: \tab\threestars{2}{2}{16} \par \hintcontent{ What was White's last move? \par What does this tell us about White's king? } - Part 3: \tab\threestars{2}{1}{17} \par + Part 3: \tab\threestars{4}{4}{12} \par \hintcontent{ Now, look at the region bounded by G1 and H3. \par In Part 1, we found that all of White's pieces were captured---including the H1 rook. \par @@ -254,73 +257,27 @@ What is it, and what is its color? \par What does this tell us about the bishop on H1? } - Part 4: \tab\threestars{3}{2}{15} \par + Part 4: \tab\threestars{8}{3}{9} \par \hintcontent{ The black bishop on H2 must have been promoted on G1. \par Which pawn was it, and how did it get there? (Remember, we counted captures in Part 1). \par In what order did the cross capture by the G1 and H1 pawns occur? } - Part 5: \tab\threestars{5}{2}{13} \par + Part 5: \tab\threestars{11}{2}{7} \par \hintcontent{ Which black pieces are still missing? \par Remember that White cannot castle through check. } \vspace{2mm} - Done: \tab\threestars{7}{13}{0} + Done: \tab\threestars{13}{7}{0} \end{hintlist} - -\vfill -\pagebreak - \makeatletter \if@solutions -\else - - \vfill - - \twoboards{ - ra8,ke8,rh8, - pc7,pd7, - pb6, - pa5, - Ug4, - Pb3,Pg3,Ph3, - ba2,Pb2,Pc2,Pd2,Pf2,qg2,bh2, - Kc1,Rd1,nf1,Bh1 - } - - \vfill - - \twoboards{ - ra8,ke8,rh8, - pc7,pd7, - pb6, - pa5, - Ug4, - Pb3,Pg3,Ph3, - ba2,Pb2,Pc2,Pd2,Pf2,qg2,bh2, - Kc1,Rd1,nf1,Bh1 - } - - \vfill - - \twoboards{ - ra8,ke8,rh8, - pc7,pd7, - pb6, - pa5, - Ug4, - Pb3,Pg3,Ph3, - ba2,Pb2,Pc2,Pd2,Pf2,qg2,bh2, - Kc1,Rd1,nf1,Bh1 - } - \vfill \pagebreak - \fi \makeatother diff --git a/Advanced/Retrograde Analysis/stars.tex b/Advanced/Retrograde Analysis/stars.tex index 602765d..80b9612 100644 --- a/Advanced/Retrograde Analysis/stars.tex +++ b/Advanced/Retrograde Analysis/stars.tex @@ -1,33 +1,40 @@ -\def\nstars#1#2{% - \ifnum #2 > 0% - \def\starcolor{\color{#1}}% - \count255=1% - \loop{% - \starcolor $\bigstar$% - }% - \ifnum \count255 < #2% - \advance\count255 by 1% - \repeat% - \fi% -} +\ifextras + \def\nstars#1#2{} + \def\startimes#1{} + \def\onestars#1{} + \def\threestars#1#2#3{} +\else + \def\nstars#1#2{% + \ifnum #2 > 0% + \def\starcolor{\color{#1}}% + \count255=1% + \loop{% + \starcolor $\bigstar$% + }% + \ifnum \count255 < #2% + \advance\count255 by 1% + \repeat% + \fi% + } -\def\startimes#1{ - {\color{ogrape} $\bigstar \times #1$} -} + \def\startimes#1{ + {\color{ogrape} $\bigstar \times #1$} + } -\def\onestars#1{ - \nstars{ogrape}{#1} -} + \def\onestars#1{ + \nstars{ogrape}{#1} + } -\def\threestars#1#2#3{ - \nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3} -} + \def\threestars#1#2#3{ + \nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3} + } -% Not used, commented out. -\def\difficulty#1#2{ - \textbf{Difficulty:} \stars{#1}{#2} \par - \vspace{1mm} -} + % Not used, commented out. + \def\difficulty#1#2{ + \textbf{Difficulty:} \stars{#1}{#2} \par + \vspace{1mm} + } +\fi