Added "extras" mode

This commit is contained in:
2023-12-06 21:52:05 -08:00
parent 361f9e694f
commit a5362a2eb9
6 changed files with 123 additions and 112 deletions

View File

@ -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