Added "extras" mode
This commit is contained in:
parent
361f9e694f
commit
a5362a2eb9
@ -14,17 +14,28 @@
|
|||||||
\chessboard[setpieces = {#1}]
|
\chessboard[setpieces = {#1}]
|
||||||
\hfill
|
\hfill
|
||||||
\chessboard[setpieces = {#1}]
|
\chessboard[setpieces = {#1}]
|
||||||
|
\par
|
||||||
|
}
|
||||||
|
|
||||||
|
\long\def\sixboards#1{
|
||||||
|
\twoboards{#1}
|
||||||
|
\vfill
|
||||||
|
\twoboards{#1}
|
||||||
|
\vfill
|
||||||
|
\twoboards{#1}
|
||||||
}
|
}
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\long\def\manyboards#1{
|
\long\def\manyboards#1{
|
||||||
\if@solutions
|
\ifextras
|
||||||
\twoboards{#1}
|
\sixboards{#1}
|
||||||
\else
|
\else
|
||||||
\vfill
|
\if@solutions
|
||||||
\twoboards{#1}
|
\twoboards{#1}
|
||||||
\vfill
|
\else
|
||||||
\twoboards{#1}
|
\twoboards{#1}
|
||||||
|
\twoboards{#1}
|
||||||
|
\fi
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,32 @@
|
|||||||
% use [nosolutions] flag to hide solutions.
|
% use [nosolutions] flag to hide solutions.
|
||||||
% use [solutions] flag to show solutions.
|
% use [solutions] flag to show solutions.
|
||||||
\documentclass[
|
\documentclass[
|
||||||
solutions,
|
solutions
|
||||||
shortwarning
|
|
||||||
]{../../resources/ormc_handout}
|
]{../../resources/ormc_handout}
|
||||||
\usepackage{../../resources/macros}
|
\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{chessfss}
|
||||||
\usepackage{chessboard}
|
\usepackage{chessboard}
|
||||||
\usepackage{anyfontsize} % Silences some chess warnings
|
\usepackage{anyfontsize} % Silences some chess warnings
|
||||||
@ -14,6 +34,9 @@
|
|||||||
\usepackage[hang]{footmisc}
|
\usepackage[hang]{footmisc}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% Modify default tab positions for better stars in score decomposition
|
% Modify default tab positions for better stars in score decomposition
|
||||||
\TabPositions{1.2cm, 2cm, 3cm, 4cm, 5cm, 6cm, 7cm, 8cm}
|
\TabPositions{1.2cm, 2cm, 3cm, 4cm, 5cm, 6cm, 7cm, 8cm}
|
||||||
|
|
||||||
@ -28,6 +51,10 @@
|
|||||||
{black!12!white}
|
{black!12!white}
|
||||||
{black!80!white}
|
{black!80!white}
|
||||||
|
|
||||||
|
|
||||||
|
\ifextras
|
||||||
|
\excludecomment{hintlist}
|
||||||
|
\else
|
||||||
\newenvironment{hintlist}{
|
\newenvironment{hintlist}{
|
||||||
\begin{@hintlist}
|
\begin{@hintlist}
|
||||||
}{
|
}{
|
||||||
@ -35,6 +62,8 @@
|
|||||||
\if@solutions\vspace{-2mm}\fi
|
\if@solutions\vspace{-2mm}\fi
|
||||||
\end{@hintlist}
|
\end{@hintlist}
|
||||||
}
|
}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
|
||||||
\long\def\hintcontent#1{
|
\long\def\hintcontent#1{
|
||||||
\if@solutions
|
\if@solutions
|
||||||
@ -60,21 +89,25 @@
|
|||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
\maketitle
|
\ifextras\else
|
||||||
|
\maketitle
|
||||||
|
|
||||||
\footnotetext[1]{
|
\footnotetext[1]{
|
||||||
Most of the easy problems in this handout are from \textit{The Chess Mysteries of Sherlock Holmes}.\\
|
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}.
|
The rest are from \textit{The Chess Mysteries of the Arabian Knights}.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\input{parts/00 rules}
|
||||||
\input{parts/00 rules}
|
\input{parts/01 intro}
|
||||||
\input{parts/01 intro}
|
\fi
|
||||||
|
|
||||||
\input{parts/02 easy}
|
\input{parts/02 easy}
|
||||||
\input{parts/03 medium}
|
\input{parts/03 medium}
|
||||||
%\input{parts/04 hard}
|
%\input{parts/04 hard}
|
||||||
|
|
||||||
\chessboard \hfill \chessboard \par
|
|
||||||
\chessboard \hfill \chessboard \par
|
\ifextras
|
||||||
\chessboard \hfill \chessboard \par
|
\sixboards{}
|
||||||
|
\vfill\pagebreak
|
||||||
|
\fi
|
||||||
\end{document}
|
\end{document}
|
@ -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
|
There are two ways you can ask for assistance: \par
|
||||||
\begin{itemize}[itemsep=1mm]
|
\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
|
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.
|
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}
|
\vspace{1cm}
|
||||||
|
|
||||||
Each \say{part} corresponds to one hint in the instructor's handout. \par
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,19 +1,21 @@
|
|||||||
\section{Simple problems}
|
\ifextras\else
|
||||||
|
\section{Simple problems}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
|
||||||
% Sherlock, A little exercise
|
% Sherlock, A little exercise
|
||||||
\problem{A little exercise}
|
\problem{A little exercise}
|
||||||
%\difficulty{1}{5}
|
%\difficulty{1}{5}
|
||||||
\onestars{3}
|
\onestars{3}
|
||||||
|
|
||||||
Black has just moved in the game below. White started on the south side of the board.\par
|
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
|
What was Black's last move, and what was White's last move? \par
|
||||||
|
|
||||||
|
\ifextras\else
|
||||||
\note[Note]{
|
\note[Note]{
|
||||||
The boards below are identical copies. Scribble to your heart's content.\\
|
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.
|
There a few empty boards at the end of this handout as well.
|
||||||
}
|
}
|
||||||
|
\fi
|
||||||
|
|
||||||
\manyboards{
|
\manyboards{
|
||||||
ka8,Kc8,
|
ka8,Kc8,
|
||||||
@ -24,7 +26,7 @@ What was Black's last move, and what was White's last move? \par
|
|||||||
\begin{hintlist}
|
\begin{hintlist}
|
||||||
Part 1: \tab\threestars{0}{1}{2} \par
|
Part 1: \tab\threestars{0}{1}{2} \par
|
||||||
\hintcontent{
|
\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
|
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
|
Part 2: \tab\threestars{1}{1}{2} \par
|
||||||
\hintcontent{
|
\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}
|
\vspace{2mm}
|
||||||
@ -461,7 +464,7 @@ Which bishop was it, and what did it capture? \par
|
|||||||
\end{itemize}
|
\end{itemize}
|
||||||
}
|
}
|
||||||
|
|
||||||
Part 3: \tab\threestars{3}{2}{3} \par
|
Part 3: \tab\threestars{3}{3}{2} \par
|
||||||
\hintcontent{
|
\hintcontent{
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item ...the black pawn on G7 captured a white piece on H6.
|
\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}
|
\vspace{2mm}
|
||||||
Done: \tab\threestars{5}{3}{0}
|
Done: \tab\threestars{6}{2}{0}
|
||||||
\end{hintlist}
|
\end{hintlist}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
\section{Slightly harder problems}
|
\ifextras\else
|
||||||
|
\section{Slightly harder problems}
|
||||||
|
\fi
|
||||||
|
|
||||||
% Sherlock, A matter of direction
|
% Sherlock, A matter of direction
|
||||||
\problem{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}
|
\begin{hintlist}
|
||||||
Part 1: \tab\threestars{0}{1}{3} \par
|
Part 1: \tab\threestars{0}{2}{2} \par
|
||||||
\hintcontent{
|
\hintcontent{
|
||||||
The bishop on H1 is important. How did White deliver this check?
|
The bishop on H1 is important. How did White deliver this check?
|
||||||
}
|
}
|
||||||
\vspace{2mm}
|
\vspace{2mm}
|
||||||
Done: \tab\threestars{1}{3}{0}
|
Done: \tab\threestars{2}{2}{0}
|
||||||
\end{hintlist}
|
\end{hintlist}
|
||||||
|
|
||||||
\begin{solution}
|
\begin{solution}
|
||||||
@ -164,7 +166,7 @@ White to move. Which side of the board did each color start on? \par
|
|||||||
}
|
}
|
||||||
|
|
||||||
\begin{hintlist}
|
\begin{hintlist}
|
||||||
Part 1: \tab\threestars{0}{5}{5} \par
|
Part 1: \tab\threestars{0}{6}{3} \par
|
||||||
\hintcontent{
|
\hintcontent{
|
||||||
Double-checks make all positions seem impossible... \par
|
Double-checks make all positions seem impossible... \par
|
||||||
Try E1 and F2 anyway. Can you add pieces to make it make sense? \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}
|
\vspace{2mm}
|
||||||
Done: \tab\threestars{5}{5}{0}
|
Done: \tab\threestars{6}{3}{0}
|
||||||
\end{hintlist}
|
\end{hintlist}
|
||||||
|
|
||||||
\begin{solution}
|
\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
|
There is a piece at G4, marked with a $\odot$. \par
|
||||||
What is it, and what is its color? \par
|
What is it, and what is its color? \par
|
||||||
|
|
||||||
\twoboards{
|
|
||||||
|
\manyboards{
|
||||||
ra8,ke8,rh8,
|
ra8,ke8,rh8,
|
||||||
pc7,pd7,
|
pc7,pd7,
|
||||||
pb6,
|
pb6,
|
||||||
@ -234,19 +237,19 @@ What is it, and what is its color? \par
|
|||||||
|
|
||||||
|
|
||||||
\begin{hintlist}
|
\begin{hintlist}
|
||||||
Part 1: \tab\threestars{0}{1}{19} \par
|
Part 1: \tab\threestars{0}{2}{18} \par
|
||||||
\hintcontent{
|
\hintcontent{
|
||||||
What color is the missing piece? Count captures.\par
|
What color is the missing piece? Count captures.\par
|
||||||
Look at the region bounded by A1 and B3. How did the bishop get there?
|
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{
|
\hintcontent{
|
||||||
What was White's last move? \par
|
What was White's last move? \par
|
||||||
What does this tell us about White's king?
|
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{
|
\hintcontent{
|
||||||
Now, look at the region bounded by G1 and H3. \par
|
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
|
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?
|
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{
|
\hintcontent{
|
||||||
The black bishop on H2 must have been promoted on G1. \par
|
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
|
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?
|
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{
|
\hintcontent{
|
||||||
Which black pieces are still missing? \par
|
Which black pieces are still missing? \par
|
||||||
Remember that White cannot castle through check.
|
Remember that White cannot castle through check.
|
||||||
}
|
}
|
||||||
|
|
||||||
\vspace{2mm}
|
\vspace{2mm}
|
||||||
Done: \tab\threestars{7}{13}{0}
|
Done: \tab\threestars{13}{7}{0}
|
||||||
\end{hintlist}
|
\end{hintlist}
|
||||||
|
|
||||||
|
|
||||||
\vfill
|
|
||||||
\pagebreak
|
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\if@solutions
|
\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
|
\vfill
|
||||||
\pagebreak
|
\pagebreak
|
||||||
|
|
||||||
\fi
|
\fi
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
@ -1,33 +1,40 @@
|
|||||||
\def\nstars#1#2{%
|
\ifextras
|
||||||
\ifnum #2 > 0%
|
\def\nstars#1#2{}
|
||||||
\def\starcolor{\color{#1}}%
|
\def\startimes#1{}
|
||||||
\count255=1%
|
\def\onestars#1{}
|
||||||
\loop{%
|
\def\threestars#1#2#3{}
|
||||||
\starcolor $\bigstar$%
|
\else
|
||||||
}%
|
\def\nstars#1#2{%
|
||||||
\ifnum \count255 < #2%
|
\ifnum #2 > 0%
|
||||||
\advance\count255 by 1%
|
\def\starcolor{\color{#1}}%
|
||||||
\repeat%
|
\count255=1%
|
||||||
\fi%
|
\loop{%
|
||||||
}
|
\starcolor $\bigstar$%
|
||||||
|
}%
|
||||||
|
\ifnum \count255 < #2%
|
||||||
|
\advance\count255 by 1%
|
||||||
|
\repeat%
|
||||||
|
\fi%
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
\def\startimes#1{
|
\def\startimes#1{
|
||||||
{\color{ogrape} $\bigstar \times #1$}
|
{\color{ogrape} $\bigstar \times #1$}
|
||||||
}
|
}
|
||||||
|
|
||||||
\def\onestars#1{
|
\def\onestars#1{
|
||||||
\nstars{ogrape}{#1}
|
\nstars{ogrape}{#1}
|
||||||
}
|
}
|
||||||
|
|
||||||
\def\threestars#1#2#3{
|
\def\threestars#1#2#3{
|
||||||
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
|
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% Not used, commented out.
|
% Not used, commented out.
|
||||||
\def\difficulty#1#2{
|
\def\difficulty#1#2{
|
||||||
\textbf{Difficulty:} \stars{#1}{#2} \par
|
\textbf{Difficulty:} \stars{#1}{#2} \par
|
||||||
\vspace{1mm}
|
\vspace{1mm}
|
||||||
}
|
}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user