Added "extras" mode
This commit is contained in:
parent
361f9e694f
commit
a5362a2eb9
@ -14,18 +14,29 @@
|
||||
\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{
|
||||
\ifextras
|
||||
\sixboards{#1}
|
||||
\else
|
||||
\if@solutions
|
||||
\twoboards{#1}
|
||||
\else
|
||||
\vfill
|
||||
\twoboards{#1}
|
||||
\vfill
|
||||
\twoboards{#1}
|
||||
\fi
|
||||
\fi
|
||||
}
|
||||
|
||||
\cbDefineNewPiece{white}{U}
|
||||
|
@ -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,6 +89,7 @@
|
||||
|
||||
\begin{document}
|
||||
|
||||
\ifextras\else
|
||||
\maketitle
|
||||
|
||||
\footnotetext[1]{
|
||||
@ -67,14 +97,17 @@
|
||||
The rest are from \textit{The Chess Mysteries of the Arabian Knights}.
|
||||
}
|
||||
|
||||
|
||||
\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}
|
@ -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.
|
||||
|
||||
|
||||
|
||||
|
@ -1,19 +1,21 @@
|
||||
\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}
|
||||
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
\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
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
\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}}%
|
||||
@ -30,4 +36,5 @@
|
||||
\textbf{Difficulty:} \stars{#1}{#2} \par
|
||||
\vspace{1mm}
|
||||
}
|
||||
\fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user