Minor edits

This commit is contained in:
mark 2023-12-06 20:02:32 -08:00
parent e4ebdac31a
commit 361f9e694f
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
5 changed files with 84 additions and 26 deletions

View File

@ -10,24 +10,24 @@
vlabelformat=\Alph{filelabel} vlabelformat=\Alph{filelabel}
} }
\long\def\manyboards#1{ \long\def\twoboards#1{
\if@solutions
\chessboard[setpieces = {#1}] \chessboard[setpieces = {#1}]
\hfill \hfill
\chessboard[setpieces = {#1}] \chessboard[setpieces = {#1}]
\else
\vfill
\chessboard[setpieces = {#1}]
\hfill
\chessboard[setpieces = {#1}]
\vfill
\chessboard[setpieces = {#1}]
\hfill
\chessboard[setpieces = {#1}]
\fi
} }
\makeatletter \makeatletter
\long\def\manyboards#1{
\if@solutions
\twoboards{#1}
\else
\vfill
\twoboards{#1}
\vfill
\twoboards{#1}
\fi
}
\cbDefineNewPiece{white}{U} \cbDefineNewPiece{white}{U}
{\raisebox{1.75mm}{\cfss@whitepiececolor {\raisebox{1.75mm}{\cfss@whitepiececolor
$\odot$}} $\odot$}}

View File

@ -1,6 +1,6 @@
\section{Rules} \section{Rules}
This handout contains a set of problems. \par This handout contains a set of problems. You may solve them in any order. \par
Each is marked with a few stars, which you collect by presenting solutions. \par Each is marked with a few stars, which you collect by presenting solutions. \par
An example is below. An example is below.

View File

@ -1,14 +1,15 @@
\section{Introduction} \section{Introduction}
To solve the problems in this handout, you mustn't be a chess master---you just need to know how the pieces move. To solve the problems in this handout, you mustn't be a chess master---you just need to know how the pieces move.
I'm sure you're all familiar with the basic rules of chess. The odd ones are listed below. I'd expect that you're all familiar with the basic rules of chess (ask questions if you aren't!).
The odd ones are listed below.
\generic{Board orientation:} \generic{Board orientation:}
The bottom-left square of a chessboard is \textbf{always} black. The bottom-left square of a chessboard is \textit{always} black.
\generic{Starting pawns \& en passant:} \generic{Starting pawns \& en passant:}
A pawn may move two squares on its first turn. \par A pawn may move two squares on its first turn. \par
An opposing pawn may capture this pawn as it does this. \par An opposing pawn may capture this pawn as it completes this move. \par
This is called an \textit{en passant} capture (Which means \say{in passing} in French) This is called an \textit{en passant} capture (Which means \say{in passing} in French)
\begin{minipage}{0.3\textwidth} \begin{minipage}{0.3\textwidth}
@ -69,7 +70,7 @@ This is called an \textit{en passant} capture (Which means \say{in passing} in F
\vfill \vfill
\generic{Promotion:} \generic{Promotion:}
When a pawn reaches the last row of the board, it may be promoted to \textbf{any} other piece.\par When a pawn reaches the last row of the board, it may be promoted to any other piece.\par
(Except a king or a pawn, of course.) (Except a king or a pawn, of course.)
\generic{Castling:} \generic{Castling:}
@ -139,14 +140,18 @@ A king and rook can \textit{castle} under the following conditions:
\vfill \vfill
\generic{General Strategies:} \generic{General Strategies:}
Below is a list of questions you'll want to ask yourself if you get stuck. \par As you solve problems, keep the following in mind. \par
\note[Note]{Yes, I know you don't have the problems yet. Patience.} You may want to return to this list if you get stuck.
\begin{itemize} \begin{itemize}
\item What was the last move? (By black or white) \item What was the last move? (By black or white)
\item Were there any promotions? This may be indirect:\par
\item Were there any promotions? The implication may be indirect: \par
if White needs a third bishop, there was a promotion. \par if White needs a third bishop, there was a promotion. \par
\note{Promotions often resolve seemingly impossible situations.} \note{Promotions often resolve seemingly impossible situations.}
\item Do not assume that Black and White play well.
You may only assume they play \textit{correctly}.
\end{itemize} \end{itemize}
\vfill \vfill

View File

@ -10,6 +10,11 @@
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
\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.
}
\manyboards{ \manyboards{
ka8,Kc8, ka8,Kc8,
Ph2, Ph2,

View File

@ -221,7 +221,7 @@ 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
\manyboards{ \twoboards{
ra8,ke8,rh8, ra8,ke8,rh8,
pc7,pd7, pc7,pd7,
pb6, pb6,
@ -272,10 +272,58 @@ What is it, and what is its color? \par
\end{hintlist} \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 \vfill
\pagebreak \pagebreak
\fi
\makeatother
\begin{solution} \begin{solution}
\textbf{Part 1:} \textbf{Part 1:}