summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-08 23:06:38 +0000
committerKarl Berry <karl@freefriends.org>2011-08-08 23:06:38 +0000
commit7425adb75ffbe957eaf75d7eef2e7e78bd3924d2 (patch)
tree47cfeab55c91689f4e3efd35638477b6783769a0 /Master
parent3401925cf4eae2a6929af0eda3f74631b049d069 (diff)
new latex package othelloboard 1.01 (8aug11)
git-svn-id: svn://tug.org/texlive/trunk@23463 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/othelloboard/README17
-rw-r--r--Master/texmf-dist/doc/latex/othelloboard/othelloboard.pdfbin0 -> 137880 bytes
-rw-r--r--Master/texmf-dist/doc/latex/othelloboard/othelloboard.tex746
-rw-r--r--Master/texmf-dist/tex/latex/othelloboard/othelloboard.sty947
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check3
-rw-r--r--Master/tlpkg/tlpsrc/collection-games.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/othelloboard.tlpsrc0
7 files changed, 1713 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/othelloboard/README b/Master/texmf-dist/doc/latex/othelloboard/README
new file mode 100644
index 00000000000..f1e8f10bdf1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/othelloboard/README
@@ -0,0 +1,17 @@
+The othelloboard package allows you to create gorgeous Othello/Reversi board diagrams
+with minimal effort. Diagrams may be any size and support annotations (including
+full game transcripts). Automated board/transcript creation from plain text formats
+standard to WZebra and other programs is also supported.
+
+***************************
+Copyright 2011 Steven Hall
+
+This work may be distributed and/or modified under the conditions of the LaTeX Project
+Public License. The latest version of this license is in http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Steven Hall (stevenhall.uk@gmail.com).
+
+This work consists of the files othelloboard.sty and othelloboard.pdf.
diff --git a/Master/texmf-dist/doc/latex/othelloboard/othelloboard.pdf b/Master/texmf-dist/doc/latex/othelloboard/othelloboard.pdf
new file mode 100644
index 00000000000..3462339256f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/othelloboard/othelloboard.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/othelloboard/othelloboard.tex b/Master/texmf-dist/doc/latex/othelloboard/othelloboard.tex
new file mode 100644
index 00000000000..851e7c14d5b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/othelloboard/othelloboard.tex
@@ -0,0 +1,746 @@
+\documentclass[a4paper,12pt]{article}
+
+\pagestyle{plain}
+\usepackage{fullpage}
+\usepackage{moreverb}
+\usepackage{wrapfig}
+\usepackage{multicol}
+\usepackage{appendix}
+\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
+\usepackage{othelloboard}
+\usepackage{natbib}
+
+%%% TITLE %%%
+\newcommand{\fileversion}{v1.01}
+\newcommand{\filedate}{28/06/2011}
+\title{The \textsf{othelloboard} package%
+\thanks{This document corresponds to \textsf{othelloboard}~\fileversion, dated~\filedate.}
+}\author{Steven Hall \\ \texttt{stevenhall.uk@gmail.com}}
+\date{28 June 2011}
+
+
+%% DOCUMENT %%
+
+\begin{document}
+\pagestyle{plain}
+
+\maketitle
+
+%------
+\section{Drawing a simple board diagram}
+\begin{othelloboard}{1}
+\gridrefs
+\dotmarkings
+\othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{1}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{1}{1}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+%annotations
+%\put(0,-14){\small{Figure 1}}
+\end{othelloboard}
+
+
+The board above was produced by the following list of commands:
+ \begin{verbatimtab}
+ \begin{othelloboard}{1}
+ \dotmarkings
+ \othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+ \othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+ \othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+ \othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+ \othelloarrayfifthrow {0}{0}{2}{2}{1}{1}{0}{0}
+ \othelloarraysixthrow {0}{0}{2}{1}{1}{1}{0}{0}
+ \othelloarrayseventhrow {0}{0}{0}{0}{0}{0}{0}{0}
+ \othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+ \end{othelloboard}
+\end{verbatimtab}
+
+Try copying this block of code into your own document and typesetting it. Make sure you include \verb=\usepackage{othelloboard}= somewhere in your preamble.
+
+Try replacing any of the \verb=0=s, \verb=1=s and \verb=2=s in the array with any number \verb=0=--\verb=4=. You should see that each number has the following effect (\verb=0= has no effect):
+
+\label{disckey}~\begin{tabular}{l c l l c l}
+\verb=1= & draws a white disc: & \begin{picture}(20,20) \put(10,5){\circle{20}} \end{picture} & \hspace{24pt} \verb=3= & draws a white diamond: & \begin{picture}(20,20) \put(10,5){\whitediamond} \end{picture} \\
+\verb=2= & draws a black disc: & \begin{picture}(20,20) \put(10,5){\circle*{20}} \end{picture} & \hspace{24pt} \verb=4= & draws a black diamond: & \begin{picture}(20,20) \put(10,5){\blackdiamond} \end{picture} \\
+\end{tabular}\\
+
+You should also see that where you choose to put a number in the grid determines where on the Othello board it appears. The \textsf{othelloboard} package has been designed to make creating a board diagram as intuitive and simple as possible, so the position of numbers in the array corresponds to exactly the squares you would expect in the diagram. Changing the `\verb=2=' to a `\verb=1=' e.g.\ in the second row of numbers in the code replaces the black disc on c2 with a white one.
+
+\subsection{The \texttt{othelloboard} environment}
+\subsubsection{The basic commands}
+
+Look again at the opening and closing lines of code for the diagram above.
+
+\begin{description}
+\item{\verb=\begin{othelloboard}{1}=} \verb=% = Mandatory argument for board size.
+\item \ldots
+\item{\verb=\end{othelloboard}=}
+\end{description}
+
+The board diagram was created by entering a series of commands inside of an \verb=othelloboard= environment. The mandatory argument at the end of the \verb=\begin= environment declaration specifies the size of board. Any size at all is possible without loss of detail in the diagram. The board diagram above was set with default value of 1. A value between 0 and 1 produces a smaller board, while a value greater than 1 produces a larger board.
+
+\begin{description}
+\item{\verb=\dotmarkings=} produces the tiny marker dots on the inside corners of the X-squares. The command can be deleted or commented out if you don't want the dots.
+\end{description}
+
+Next, the array of discs on the board is drawn by eight separate commands, one for each row. E.g.\ row three is drawn by this command:
+\begin{description}
+\item{\verb=\othelloarraythirdrow{0}{1}{2}{2}{2}{0}{0}{0}=} The command takes eight arguments, one for each square on the third row, a3--h3. The possible values of each argument are \verb=0=, \verb=1=, \verb=2=, \verb=3=, \verb=4= (with effects described at the top of this page).
+\end{description}
+
+If you don't wish to draw any discs at all for a particular row, it is not necessary to include the command for that row. We could easily, e.g., have omitted the first and eighth row commands in our diagram in the previous section (rather than give the command with a just series of \verb=0=s as arguments).
+
+Here is a board drawn at size 0.75 without \verb=\dotmarkings=, and with the \verb=\othelloarray=\ldots\verb=row= commands for the first and eighth rows omitted:\\
+\begin{tabular}{ll}
+\begin{othelloboard}{0.75}
+\othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{4}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{4}{4}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{2}{0}{0}{0}
+\othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+\end{othelloboard}
+ &
+\begin{minipage}[b]{320pt}
+\begin{verbatimtab}
+\begin{othelloboard}{0.75}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{4}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{4}{4}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{2}{0}{0}{0}
+\end{othelloboard}
+\end{verbatimtab}
+\ \\
+\end{minipage}\\
+\end{tabular}
+\ \\
+Note the use of black diamonds to show the discs just flipped by the black disc placed at e7. This is the convention followed, e.g., in Brian Rose's book (Rose 2005).
+
+\subsubsection{Useful tip} \label{tabtips}
+You may find that it helps see where you are putting discs if you align all of the rows of numbers in the array. You can do this (as with the examples given in this document) by putting tabs between the command name and its first argument. Don't use spaces though, as unlike tabs (which aren't read as gaps when the file compiles), spaces will break the commands and cause errors.
+
+\verb=\othelloarrayfirstrow= \begin{picture}(30,30)\put(20,8){\vector(-1,-2){5}}\put(0,12){\textit{tabs not spaces}}\end{picture}\verb= {0}{1}{1}{2}{1}{0}{0}{0}=\\
+
+\subsection{The \texttt{othelloboardnorefs} environment}
+\label{norefs}
+If you don't want grid reference labels along the top and left edges, you can use the \verb=othelloboardnorefs= environment instead of the \verb=othelloboard= environment. The commands that work inside of the environment are all the same as before, but the outside boundaries of the diagram will be the edges of the 8$\times$8 grid. Our opening example, changing only the environment, gives this output:
+
+\begin{minipage}[t]{196pt}
+\vspace{0pt}
+\begin{othelloboardnorefs}{1}
+\dotmarkings
+\othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{1}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{1}{1}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+\end{othelloboardnorefs}
+\end{minipage}
+\begin{minipage}[t]{360pt}
+\vspace{12pt}
+\begin{small}
+\begin{verbatimtab}
+\begin{othelloboardnorefs}{1}
+\dotmarkings
+\othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{1}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{1}{1}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+\end{othelloboardnorefs}
+\end{verbatimtab}
+\end{small}
+\end{minipage}
+
+A standard-size \verb=othelloboard= diagram produces a 208pt$\times$208pt box containing a 192pt$\times$192pt board with grid labels in 16pt margins at the top and left side. A standard-size \verb=othelloboardnorefs= diagram produces a 192pt$\times$192pt box containing just the board (see Appendix \ref{appendix:layout}).
+
+\section{Annotations}
+You may want to add some annotations to some of the squares, perhaps for move numbers or to indicate possible moves at a particular point in a game.\\
+\begin{minipage}[t]{212pt}
+\vspace{0pt}
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{2}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{2}{2}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{2}{0}{0}{0}
+\othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+%annotations
+\annotationsfirstrow {} {} {} {} {} {} {} {}
+\annotationssecondrow {} {} {9} {} {} {} {} {}
+\annotationsthirdrow {} {8} {5} {4} {11} {} {} {}
+\annotationsfourthrow {} {10} {3} {} {} {6} {} {}
+\annotationsfifthrow {} {} {7} {} {} {1} {} {}
+\annotationssixthrow {} {} {13} {2} {12} {14} {} {}
+\annotationsseventhrow {} {} {} {} {15} {} {} {}
+\annotationseighthrow {} {} {} {} {} {} {} {}
+\end{othelloboard}
+\end{minipage}
+\begin{minipage}[t]{248pt}
+\vspace{8pt}
+\begin{footnotesize}
+\begin{verbatimtab}
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{2}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{2}{2}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{2}{0}{0}{0}
+%annotations
+\annotationssecondrow {} {} {9}{} {} {} {} {}
+\annotationsthirdrow {}{8}{5}{4}{11}{} {} {}
+\annotationsfourthrow {}{10}{3}{} {} {6}{} {}
+\annotationsfifthrow {} {} {7}{} {} {1}{} {}
+\annotationssixthrow {}{}{13}{2}{12}{14}{}{}
+\annotationsseventhrow {} {} {} {}{15}{} {} {}
+\end{othelloboard}
+\end{verbatimtab}
+\end{footnotesize}
+\end{minipage}
+\ \\
+\noindent \begin{minipage}[t]{212pt}
+\vspace{0pt}
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarrayfirstrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{1}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{1}{1}{1}{0}{0}
+\othelloarrayseventhrow {0}{0}{0}{0}{0}{0}{0}{0}
+\othelloarrayeighthrow {0}{0}{0}{0}{0}{0}{0}{0}
+%annotations
+\annotationssecondrow {} {} {} {} {} {} {} {}
+\annotationsthirdrow {} {} {} {} {} {} {} {}
+\annotationsfourthrow {} {} {} {} {} {} {} {}
+\annotationsfifthrow {c} {} {} {} {} {} {} {}
+\annotationssixthrow {} {} {} {} {} {} {} {}
+\annotationsseventhrow {} {} {} {b} {a?} {} {} {}
+\end{othelloboard}
+\end{minipage}
+\begin{minipage}[t]{248pt}
+\vspace{8pt}
+\begin{footnotesize}
+\begin{verbatimtab}
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarraysecondrow {0}{0}{2}{0}{0}{0}{0}{0}
+\othelloarraythirdrow {0}{1}{2}{2}{2}{0}{0}{0}
+\othelloarrayfourthrow {0}{1}{2}{1}{2}{1}{0}{0}
+\othelloarrayfifthrow {0}{0}{2}{2}{1}{1}{0}{0}
+\othelloarraysixthrow {0}{0}{2}{1}{1}{1}{0}{0}
+%annotations
+\annotationssecondrow {} {} {} {} {} {} {} {}
+\annotationsthirdrow {} {} {} {} {} {} {} {}
+\annotationsfourthrow {} {} {} {} {} {} {} {}
+\annotationsfifthrow {c}{} {} {} {} {} {} {}
+\annotationssixthrow {} {} {} {} {} {} {} {}
+\annotationsseventhrow {} {} {}{b}{a?}{} {} {}
+\end{othelloboard}
+\end{verbatimtab}
+\end{footnotesize}
+\end{minipage}
+\ \\
+
+A row of annotations is added with an \verb=\annotations=\ldots\ command. Again, there is one for each row, each taking eight arguments. Here is a possible instance of the command for adding annotations to the fifth row:
+
+\begin{description}
+\item{\verb=\annotationsfifthrow{}{43}{17}{}{}{a}{b?}{??}=} The command has an argument place for each of the squares a5--h5. The command simply prints the value of each argument, centred at the corresponding square. Any string is possible as an argument (including use of symbols in \verb=mathmode=), though you will probably only want to use one- or two-digit numerals or single letters (as in both of the diagrams just given). To leave a square unannotated, put nothing -- \verb={}= -- between the braces; putting zero -- \verb={0}= -- prints a \verb=0=.
+\end{description}
+
+To annotate a diagram just add the corresponding annotation command for each row you want to annotate. Make sure that the \verb=\annotations=\ldots\ commands appear \emph{below} the \verb=\othelloarray=\ldots\ commands.
+
+\paragraph{Text colour}
+You do not have to specify the colour of annotation text, since the \textsf{othelloboard} package is smart enough to work out the colour of the disc (or diamond) underneath the text on the same square. Annotations on a black shape are automatically set in white; other annotations are set in the default text colour (black), including those on empty squares.
+
+\subsection{Placing an individual annotation at a specified square}
+
+It is also possible to place an individual annotation at a specific square by giving the square name. The command for this is:
+
+\verb=\posannotation{<=\emph{squarename}\verb=>}{<=\emph{annotationstring}\verb=>}=
+
+So \verb=\posannotation{F2}{47}= puts the numeral `47' at square f2.
+
+
+\subsection{Transcripts}
+Using \verb=\annotations=\ldots\ together with \verb=\othelloarray=\ldots\ commands, it is thus possible to set any transcript in the two standard styles: \\
+
+\noindent \begin{picture}(216,220)(12,-16)
+\begin{othelloboard}{1}
+\othelloarrayfirstrow {1}{2}{1}{1}{2}{1}{2}{1}
+\othelloarraysecondrow {2}{1}{2}{2}{2}{1}{2}{2}
+\othelloarraythirdrow {2}{2}{2}{1}{2}{1}{1}{1}
+\othelloarrayfourthrow {1}{1}{2}{1}{2}{1}{2}{2}
+\othelloarrayfifthrow {2}{1}{1}{2}{1}{2}{2}{1}
+\othelloarraysixthrow {1}{2}{2}{1}{2}{2}{1}{1}
+\othelloarrayseventhrow {2}{1}{1}{2}{1}{1}{2}{2}
+\othelloarrayeighthrow {2}{1}{2}{2}{1}{1}{2}{1}
+\annotationsfirstrow {54} {51} {34} {30} {31} {32} {41} {42}
+\annotationssecondrow {55} {50} {43} {33} {29} {28} {39} {58}
+\annotationsthirdrow {23} {27} {3} {4} {25} {8} {40} {59}
+\annotationsfourthrow {24} {22} {5} {} {} {6} {37} {60}
+\annotationsfifthrow {47} {20} {14} {} {} {1} {35} {38}
+\annotationssixthrow {26} {21} {15} {2} {9} {7} {12} {36}
+\annotationsseventhrow {49} {56} {16} {11} {10} {18} {45} {53}
+\annotationseighthrow {57} {46} {17} {13} {44} {52} {19} {48}
+%\put(12,-14){Figure 3.2}
+\end{othelloboard}
+\end{picture}
+\begin{minipage}[b]{320pt}
+\begin{footnotesize}
+\begin{verbatimtab}
+\begin{othelloboard}{1}
+\othelloarrayfirstrow {1}{2}{1}{1}{2}{1}{2}{1}
+\othelloarraysecondrow {2}{1}{2}{2}{2}{1}{2}{2}
+\othelloarraythirdrow {2}{2}{2}{1}{2}{1}{1}{1}
+\othelloarrayfourthrow {1}{1}{2}{1}{2}{1}{2}{2}
+\othelloarrayfifthrow {2}{1}{1}{2}{1}{2}{2}{1}
+\othelloarraysixthrow {1}{2}{2}{1}{2}{2}{1}{1}
+\othelloarrayseventhrow {2}{1}{1}{2}{1}{1}{2}{2}
+\othelloarrayeighthrow {2}{1}{2}{2}{1}{1}{2}{1}
+%annotations
+\annotationsfirstrow {54}{51}{34}{30}{31}{32}{41}{42}
+\annotationssecondrow {55}{50}{43}{33}{29}{28}{39}{58}
+\annotationsthirdrow {23}{27}{3} {4} {25} {8}{40}{59}
+\annotationsfourthrow {24}{22}{5} {} {} {6}{37}{60}
+\annotationsfifthrow {47}{20}{14} {} {} {1}{35}{38}
+\annotationssixthrow {26}{21}{15} {2} {9} {7}{12}{36}
+\annotationsseventhrow {49}{56}{16}{11}{10}{18}{45}{53}
+\annotationseighthrow {57}{46}{17}{13}{44}{52}{19}{48}
+\end{othelloboard}
+\end{verbatimtab}
+\end{footnotesize}
+\end{minipage}
+
+\noindent \begin{picture}(216,220)(12,-16)
+\begin{othelloboard}{1}
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\annotationsfirstrow {54} {51} {34} {30} {31} {32} {41} {42}
+\annotationssecondrow {55} {50} {43} {33} {29} {28} {39} {58}
+\annotationsthirdrow {23} {27} {3} {4} {25} {8} {40} {59}
+\annotationsfourthrow {24} {22} {5} {} {} {6} {37} {60}
+\annotationsfifthrow {47} {20} {14} {} {} {1} {35} {38}
+\annotationssixthrow {26} {21} {15} {2} {9} {7} {12} {36}
+\annotationsseventhrow {49} {56} {16} {11} {10} {18} {45} {53}
+\annotationseighthrow {57} {46} {17} {13} {44} {52} {19} {48}
+%\put(12,-14){Figure 3.3 \label{Figure 3.3}}
+\end{othelloboard}
+\end{picture}
+\begin{minipage}[b]{248pt}
+\begin{footnotesize}
+\begin{verbatimtab}
+\begin{othelloboard}{1}
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+%annotations
+\annotationsfirstrow {54}{51}{34}{30}{31}{32}{41}{42}
+\annotationssecondrow {55}{50}{43}{33}{29}{28}{39}{58}
+\annotationsthirdrow {23}{27}{3} {4} {25} {8}{40}{59}
+\annotationsfourthrow {24}{22}{5} {} {} {6}{37}{60}
+\annotationsfifthrow {47}{20}{14} {} {} {1}{35}{38}
+\annotationssixthrow {26}{21}{15} {2} {9} {7}{12}{36}
+\annotationsseventhrow {49}{56}{16}{11}{10}{18}{45}{53}
+\annotationseighthrow {57}{46}{17}{13}{44}{52}{19}{48}
+\end{othelloboard}
+\end{verbatimtab}
+\end{footnotesize}
+\ \\
+\ \\
+\end{minipage}
+
+\section{Automated methods for board creation}
+
+In addition to the manual row-by-row methods described in previous sections for creating board diagrams, \textsf{othelloboard} also supports the automated creation of board diagrams and transcripts from long strings of text in a standard format used by Othello software such as WZebra and Cassio.
+
+\subsection{Drawing a transcript from a list of moves}
+
+It is common practice to give a game transcript as a single long alphanumeric string. Here's an example exported from Cassio:
+
+C4C3D3C5B4D2D6C6E6F4B3B5F3F5G3G4A5A6C2A4A3B6E1C1A7F2C7C8D7F6G6F7
+E2D1E8F8D8E7G5H3F1H6E3G1B2B1H4A1A2A8H5B7B8G2H7H8G8G7H2H1
+
+To draw the board for this transcript you can use \verb=\drawtranscript{<=\emph{longstring}\verb=>}=.
+
+\begin{center}%
+\begin{minipage}[c]{160pt}%
+\vspace{0pt}
+\begin{othelloboard}{.8}
+\othelloarrayfourthrow{0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow{0}{0}{0}{2}{1}{0}{0}{0}
+\drawtranscript{C4C3D3C5B4D2D6C6E6F4B3B5F3F5G3G4A5A6C2A4A3B6E1C1A7F2C7C8D7F6G6F7E2D1E8F8D8E7G5H3F1H6E3G1B2B1H4A1A2A8H5B7B8G2H7H8G8G7H2H1}
+\end{othelloboard}
+\end{minipage}
+\hfill
+\begin{minipage}[c]{264pt}
+\begin{footnotesize}
+\begin{verbatimtab}
+\begin{othelloboard}{.8}
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\drawtranscript{C4C3D3C5B4D2D6C6E6...B8G2H7H8G8G7H2H1}
+\end{othelloboard}
+\end{verbatimtab}
+\end{footnotesize}
+\end{minipage}
+\end{center}
+
+\subsection{Drawing a board diagram from a single long string}
+Several programs use a standard long string of dashes, Xs and Os to import and export board diagrams. \textsf{othelloboard} also supports such strings. Here is a typical string taken from Cassio:
+
+\begin{small}
+\verb=XO---XXX-OOO-OOO-OOOOOO---OOXO---OOXOOO-OOXOOOOOXXXXX---XXXXXX--=
+\end{small}
+
+An `X' represents a black disc, an `O' a white disc, and a dash (`-') an empty square. The string gives the state of every square reading from the top row down, left to right.
+
+To create a board diagram from this string, we simply feed it as an argument into the \verb=\drawboardfromstring{<=\emph{longstring}\verb=>}= command:
+\begin{center}
+\begin{minipage}[c]{144pt}
+\vspace{0pt}
+\begin{othelloboard}{.8}
+\drawboardfromstring{XO---XXX-OOO-OOO-OOOOOO---OOXO---OOXOOO-OOXOOOOOXXXXX---XXXXXX--}
+\end{othelloboard}
+\end{minipage}
+\hfill
+\begin{minipage}[c]{272pt}
+\begin{footnotesize}
+\begin{verbatim}
+\begin{othelloboard}{.8}
+\drawboardfromstring{XO---XXX-OOO-OOO-...--XXXXXX--}
+\end{othelloboard}
+\end{verbatim}
+\end{footnotesize}
+\end{minipage}
+\end{center}
+
+\section{Tweaks}
+Feel free to tweak the code in the \verb=othelloboard.sty= file if the diagrams aren't exactly how you like them. I've commented on it quite thoroughly so that it should be easy to see which bit to tweak in order, e.g., to change the font size of the grid references, or the size of the discs relative to the grid.\\
+
+If you know that you will want marker dots on every diagram you make, you can simply add the following to your preamble (though after you call for the package):\\
+
+\noindent \verb=let\Oldothellogrid\othellogrid= \\
+\verb=\renewcommand{\othellogrid}{\dotmarkings\Oldothellogrid}= \\
+
+\noindent Now the \verb=\dotmarkings= command will be automatically executed each time you enter into an \verb=othelloboard= (or \verb=othelloboardnorefs=) environment.\\
+\ \\
+
+\noindent If you have any suggestions for improving or adding to this package, I'd be very keen to hear them. Or if you need some help tweaking the package for a particular application I'd be happy to hear from you about that too. Email me on \verb=stevenhall.uk@gmail.com=.
+
+
+\clearpage
+\appendix
+\appendixpage
+\section{Layout of diagrams}
+\label{appendix:layout}
+\noindent The board diagrams drawn with the \textsf{othelloboard} package are contained inside a \verb=picture= environment box. They behave like any diagrams drawn inside of the \verb=picture= environment and can be embedded within further boxes for accurate positioning around the page. They can also be enclosed within a \verb=figure= environment or any other float and treated like any diagram you might insert into a document, e.g.\ with labels and captions. The function of this package is just to provide diagrams neatly embedded in a box; the positioning and use of this box is up to you. However, here is some more detailed information about how the box is created and a few tips you may find useful.\\
+
+\noindent The grid of a standard-sized diagram is contained in a 192pt$\times$192pt box that itself is positioned in the bottom right corner of a slightly larger 208pt$\times$208pt box (see dotted line), creating 16pt margins on the left and at the top to allow for alphanumeric labels with a little room spare for padding (with scaled diagrams the proportions are all kept the same, including the margins). It is the larger containing box that you control when you create a standard Othello diagram. The diagram immediately below is set with no vertical space separating it from the text above and below. \\
+\noindent\begin{picture}(240,208)
+\vspace{0pt}
+\dashbox{2}(208,208)[br]{\begin{othelloboard}{1}
+\gridrefs
+\dotmarkings
+\end{othelloboard}}
+\put(24,200){\vector(-1,0){24} \scriptsize{16pt margin}}
+\put(8,110){\vector(0,1){98}}
+\put(4,102){\scriptsize{208pt}}
+\put(8,98){\vector(0,-1){98}}
+\put(28,102){\vector(0,1){90}}
+\put(24,94){\scriptsize{192pt}}
+\put(28,90){\vector(0,-1){90}}
+\end{picture}
+
+\noindent It is conceivable that you might want to create an Othello board diagram with no labels and no margins at the top and left side. In this case, you can use the \verb=othelloboardnorefs= environment (see \ref{norefs}), which works just like the \verb=othelloboard= environment except that it produces board diagrams without labels. This environment leaves out the 208pt$\times$208pt containing box that allows margins for the labels, and just draws the 192pt$\times$192pt grid inside of a 192pt$\times$192pt box. Here is an example, again with the diagram placed on the very next line of text with no vertical space, showing the absence of padding around the board.\\
+\clearpage
+\noindent (Paragraph of text immediately above the diagram code.)\\
+\noindent
+\begin{othelloboardnorefs}{1}
+\dotmarkings
+\end{othelloboardnorefs}
+
+\noindent The last two diagrams are the result of putting an \verb=othelloboard= or \verb=othelloboardnorefs= environment between two paragraphs with no extra thought about spacing and layout. It may be sufficient for your needs simply to add line breaks or vertical space before and after a diagram. Alternatively, here are a couple of examples using other methods with nicer results.\\
+
+\noindent Here's a captioned diagram enclosed and centred within a \verb=figure= environment. The code used for this and the following numbered figures is given at the end of this section.
+
+\begin{figure}[h]
+\begin{center}
+\begin{othelloboard}{.8}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{The opening position}
+\end{center}
+\end{figure}
+
+\noindent Here's an example of a diagram set in a block of text using the \verb=wrapfig= package. \\
+
+\noindent Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+\begin{wrapfigure}{r}{152pt}
+\begin{othelloboard}{0.75}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{An example using the \texttt{wrapfig} package}
+\end{wrapfigure}
+blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah\\
+
+\noindent Here are a couple of diagrams side-by-side in a \verb=figure= environment.\\
+
+\begin{figure}[ht]
+\begin{minipage}[b]{0.5\linewidth}
+\centering
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{left diagram}
+\end{minipage}
+\hspace{0.5cm}
+\begin{minipage}[b]{0.5\linewidth}
+\centering
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{right diagram}
+\end{minipage}
+\end{figure}
+
+\noindent You might also consider using \verb=minipage=s to align diagrams, or text and diagrams, horizontally:
+
+\begin{center}
+\begin{minipage}[c]{192pt}
+\textsf{
+\begin{othelloboardnorefs}{1}
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\annotationseighthrow{}{C}{A}{B}{B}{A}{C}{}
+\end{othelloboardnorefs}}
+\end{minipage}
+\hfill
+\begin{minipage}[c]{192pt}
+Figure 5\\
+
+The text over here is in the \verb=minipage= on the right. Both \verb=minipage=s are contained within a \verb=center= environment in this example.\\
+
+The annotations are in a san-serif font this time.
+\end{minipage}
+\end{center}
+
+\subsection{Code for the examples in this section}
+
+\begin{scriptsize}
+\begin{multicols}{2}
+\noindent Figure 1:
+\begin{verbatim}
+\begin{figure}[h]
+\begin{center}
+\begin{othelloboard}{.8}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{The opening position}
+\end{center}
+\end{figure}
+\end{verbatim}
+
+\noindent Figure 2:
+\begin{verbatim}
+id est laborum ...
+\begin{wrapfigure}{r}{152pt}
+\begin{othelloboard}{0.75}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{An example using the \texttt{wrapfig}
+package}
+\end{wrapfigure}
+blah blah blah blah ...
+\end{verbatim}
+
+\noindent Figures 3 \& 4:
+\begin{verbatim}
+begin{figure}[ht]
+\begin{minipage}[b]{0.5\linewidth}
+\centering
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{left diagram}
+\end{minipage}
+\hspace{0.5cm}
+\begin{minipage}[b]{0.5\linewidth}
+\centering
+\begin{othelloboard}{1}
+\dotmarkings
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\end{othelloboard}
+\caption{right diagram}
+\end{minipage}
+\end{figure}
+\end{verbatim}
+
+\noindent Figure 5:
+\begin{verbatim}
+\begin{center}
+\begin{minipage}[c]{192pt}
+\textsf{
+\begin{othelloboardnorefs}{1}
+\othelloarrayfourthrow {0}{0}{0}{1}{2}{0}{0}{0}
+\othelloarrayfifthrow {0}{0}{0}{2}{1}{0}{0}{0}
+\annotationseighthrow{}{C}{A}{B}{B}{A}{C}{}
+\end{othelloboardnorefs}}
+\end{minipage}
+\hfill
+\begin{minipage}[c]{192pt}
+Figure 5\\
+
+The text over here is in the \verb=minipage= on the
+right. Both \verb=minipage=s are contained within
+a \verb=center= environment in this example.\\
+
+The annotations are in a san-serif font this time.
+\end{minipage}
+\end{center}
+\end{verbatim}
+
+\end{multicols}
+\end{scriptsize}
+
+\section{Other commands}
+
+\noindent You may want to exploit some of the lower-level commands that were defined as part of main commands for this package. Suppose you want to draw just a couple of discs and diamonds, but without putting them in a board diagram. You might want to make sure that these are the same size and style as those used in actual board diagrams (perhaps you're writing a key like the one on page \pageref{disckey}). In that case, you can use these commands:\\
+
+\begin{tabular}{lclc}
+\verb=\whitedisc= \hspace{8pt}& \begin{picture}(20,20)\put(10,5){\whitedisc} \end{picture}& \verb=\whitediamond= \hspace{8pt} &\begin{picture}(20,20)\put(10,5){\whitediamond} \end{picture}\\
+\verb=\blackdisc= \hspace{8pt}& \begin{picture}(20,20)\put(10,5){\blackdisc} \end{picture} & \verb=\blackdiamond= \hspace{8pt} &\begin{picture}(20,20)\put(10,5){\blackdiamond} \end{picture} \\
+\end{tabular}\\
+\ \\
+
+They work best within a \verb=picture= environment using the \verb=\put= command for accurate placing. Note that the shapes are positioned from their centre-points. These are the same sub-commands that the \verb=\othelloarray=\ldots\verb=row= commands call upon when they execute, so using these ensures the size and style of shapes will be the same as those appearing within board diagrams within the same document.
+
+\subsection{Counters}
+The \textsf{othelloboard} package uses counters to store the value of discs / diamonds placed on each square (this is the same value you input in order to draw the discs / diamonds). The package currently only uses these counters to determine the text colour of annotations, but these values are available for the current board diagram until another is drawn (the counters are all reset initially as part of the code for a new diagram).
+
+The counter names follow this format:\\
+
+\verb=disccolourxy=\\
+
+where \verb=xy= is the name for a square. Since \LaTeX\ doesn't allow numbers in counter names, the \verb=x= and the \verb=y= are both letters a--h. This needn't be confusing however. The convention is still standard: column name first, row name second. Thus the square g2 is called \verb=gb= for the purpose of counters.
+
+\noindent To write the value (0--4) of the disc at g2, simply use the code: \verb=\arabic{disccolourgb}=. To use the value of the disc at g2 as part of another command, simply use \verb=\value{disccolourgb}=.
+
+\noindent To illustrate the availability of these counters, here is a lazy way of counting discs that you might use. First, define a couple of further counters to store the number of white and black discs:\\
+
+\verb=\newcounter{numberwdiscs}=
+
+\verb=\newcounter{numberbdiscs}=\\
+
+Next, define a couple of commands for counting up white (black) discs and storing the result in the counters just defined:\footnote{I've now included the full code for the example at the end of the package file in case you'd like to play with it (so you needn't define these commands yourself, they'll just work). The counting commands don't run automatically however with each diagram, to save unnecessary processing. So if you want to use the value of one of the counters, you have to run the count command first.}
+
+\begin{verbatimtab}
+\newcommand{\countwhitediscs}{% increments the counter for every white disc found.
+\ifthenelse{\equal{\value{disccolouraa}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourba}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+... }
+\end{verbatimtab}
+
+\noindent Now you can just run the count commands and write \verb=\arabic{numberwdiscs}= or \\
+\verb=\arabic{numberbdiscs}= to print the number of white (black) discs.
+\begin{center}
+\begin{minipage}[c]{192pt}
+\textsf{
+\begin{othelloboard}{.6}
+\dotmarkings
+\othelloarrayfirstrow{2}{2}{2}{2}{2}{2}{2}{2}
+\othelloarraysecondrow{2}{2}{2}{2}{2}{1}{1}{2}
+\othelloarraythirdrow{2}{1}{1}{2}{1}{1}{1}{2}
+\othelloarrayfourthrow {2}{1}{2}{1}{1}{1}{1}{2}
+\othelloarrayfifthrow {2}{2}{2}{1}{1}{1}{1}{2}
+\othelloarraysixthrow {2}{2}{1}{1}{1}{1}{1}{2}
+\othelloarrayseventhrow {0}{1}{2}{1}{2}{2}{2}{2}
+\othelloarrayeighthrow {1}{0}{2}{1}{1}{1}{1}{1}
+\end{othelloboard}}
+\end{minipage}
+%\hfill
+\begin{minipage}[c]{192pt}
+\countwhitediscs
+\countblackdiscs
+Number of white discs: \arabic{numberwdiscs} \\
+Number of black discs: \arabic{numberbdiscs} \\
+\end{minipage}
+\end{center}
+\ \\
+
+Admittedly this doesn't seem like a very useful feature, but if you like playing with this sort of thing you might find it useful to know that the \verb=disccolourxy= counters are available for use after each diagram is drawn.
+
+\section{Most likely errors}
+
+\begin{itemize}
+\item Forgetting to specify a size argument along with the \verb=\begin{othelloboard}= declaration.
+\item Putting spaces between the `\verb=w=' in a command name and the `\verb={=' of the first argument. Use tabs if you want to align the arguments for an array (see section \ref{tabtips} above). Also make sure there are no spaces between arguments.
+\item Forgetting to include an \verb=\end{othelloboard}= declaration at the end of each diagram.
+\end{itemize}
+
+\bibliographystyle{phil_review}
+\begin{thebibliography}{1}
+\bibitem{Rose2005} Brian Rose (2005). \emph{Othello: A Minute to Learn, A Lifetime to Master}.
+\end{thebibliography}
+
+\vspace{12mm}
+
+\makebox[0pt][l]{\hspace{-64pt}
+\begin{othelloboard}{2.6}
+\dotmarkings
+\othelloarrayfirstrow {1}{2}{1}{1}{2}{1}{2}{1}
+\othelloarraysecondrow {2}{1}{2}{2}{2}{1}{2}{2}
+\othelloarraythirdrow {2}{2}{2}{1}{2}{1}{1}{1}
+\othelloarrayfourthrow {1}{1}{2}{1}{2}{1}{2}{2}
+\othelloarrayfifthrow {2}{1}{1}{2}{1}{2}{2}{1}
+\othelloarraysixthrow {1}{2}{2}{1}{2}{2}{1}{1}
+\othelloarrayseventhrow {2}{1}{1}{2}{1}{1}{2}{2}
+\othelloarrayeighthrow {2}{1}{2}{2}{1}{1}{2}{1}
+\annotationsfirstrow {54} {51} {34} {30} {31} {32} {41} {42}
+\annotationssecondrow {55} {50} {43} {33} {29} {28} {39} {58}
+\annotationsthirdrow {23} {27} {3} {4} {25} {8} {40} {59}
+\annotationsfourthrow {24} {22} {5} {} {} {6} {37} {60}
+\annotationsfifthrow {47} {20} {14} {} {} {1} {35} {38}
+\annotationssixthrow {26} {21} {15} {2} {9} {7} {12} {36}
+\annotationsseventhrow {49} {56} {16} {11} {10} {18} {45} {53}
+\annotationseighthrow {57} {46} {17} {13} {44} {52} {19} {48}
+\end{othelloboard}
+}
+
+
+%------
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/othelloboard/othelloboard.sty b/Master/texmf-dist/tex/latex/othelloboard/othelloboard.sty
new file mode 100644
index 00000000000..435fc088208
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/othelloboard/othelloboard.sty
@@ -0,0 +1,947 @@
+%% othelloboard.sty
+ %% Copyright 2011 Steven Hall
+ %
+ % This work may be distributed and/or modified under the
+ % conditions of the LaTeX Project Public License.
+ % The latest version of this license is in
+ % http://www.latex-project.org/lppl.txt
+ % and version 1.3 or later is part of all distributions of LaTeX
+ % version 2005/12/01 or later.
+ %
+ % This work has the LPPL maintenance status `maintained'.
+ %
+ % The Current Maintainer of this work is Steven Hall.
+ %
+ % This work consists of the files othelloboard.sty and othelloboard.pdf
+
+
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{othelloboard}[2011/06/28 Othello board diagram drawing package by Steven Hall]
+\RequirePackage{graphicx}
+\RequirePackage{pict2e}
+\RequirePackage{ifthen}
+\RequirePackage{color}
+\RequirePackage{xstring}
+\RequirePackage{stringstrings}
+
+
+%%%%%%%%%%%%%%%%%%%%
+%%OTHELLO DIAGRAMS MACROS%%
+%%%%%%%%%%%%%%%%%%%%
+
+
+%------Main commands for individual discs-------%
+\newcommand{\blackdisc}{\circle*{20.4}}
+\newcommand{\whitedisc}{\circle{20}}
+\newcommand{\whitediamond}{\makebox(0,0){\rotatebox{45}{\framebox(13.3,13.3){}}}}
+\newcommand{\blackdiamond}{\makebox(0,0){\rotatebox{45}{\rule{14.12pt}{14.12pt}}}}
+
+
+%------Conditional command depending on value of a single argument. 1=white disc, 2=black disc, 3=white diamond, 4=black diamond, 0=no disc. Other numbers give no disc by default.
+
+\newcommand{\othellodisc}[1]{\ifthenelse{#1=0}%
+{}%
+{\ifthenelse{#1=1}%
+{\whitedisc}%
+{\ifthenelse{#1=2}%
+{\blackdisc}%
+{\ifthenelse{#1=3}%
+{\whitediamond}%
+{\ifthenelse{#1=4}%
+{\blackdiamond}%
+{}%
+}}}}}
+
+%-------Declare all the counters to be used to store value inputted for each square. Only called upon to determine the text colour of annotations (white text if value=2 or 4, otherwise normal text).
+\newcounter{disccolouraa} \newcounter{disccolourab} \newcounter{disccolourac}
+\newcounter{disccolourad} \newcounter{disccolourae} \newcounter{disccolouraf}
+\newcounter{disccolourag} \newcounter{disccolourah} \newcounter{disccolourba}
+\newcounter{disccolourbb} \newcounter{disccolourbc} \newcounter{disccolourbd}
+\newcounter{disccolourbe} \newcounter{disccolourbf} \newcounter{disccolourbg}
+\newcounter{disccolourbh} \newcounter{disccolourca} \newcounter{disccolourcb}
+\newcounter{disccolourcc} \newcounter{disccolourcd} \newcounter{disccolource}
+\newcounter{disccolourcf} \newcounter{disccolourcg} \newcounter{disccolourch}
+\newcounter{disccolourda} \newcounter{disccolourdb} \newcounter{disccolourdc}
+\newcounter{disccolourdd} \newcounter{disccolourde} \newcounter{disccolourdf}
+\newcounter{disccolourdg} \newcounter{disccolourdh} \newcounter{disccolourea}
+\newcounter{disccoloureb} \newcounter{disccolourec} \newcounter{disccoloured}
+\newcounter{disccolouree} \newcounter{disccolouref} \newcounter{disccoloureg}
+\newcounter{disccoloureh} \newcounter{disccolourfa} \newcounter{disccolourfb}
+\newcounter{disccolourfc} \newcounter{disccolourfd} \newcounter{disccolourfe}
+\newcounter{disccolourff} \newcounter{disccolourfg} \newcounter{disccolourfh}
+\newcounter{disccolourga} \newcounter{disccolourgb} \newcounter{disccolourgc}
+\newcounter{disccolourgd} \newcounter{disccolourge} \newcounter{disccolourgf}
+\newcounter{disccolourgg} \newcounter{disccolourgh} \newcounter{disccolourha}
+\newcounter{disccolourhb} \newcounter{disccolourhc} \newcounter{disccolourhd}
+\newcounter{disccolourhe} \newcounter{disccolourhf} \newcounter{disccolourhg}
+\newcounter{disccolourhh}
+%
+
+%----- Need a command to reset all counters.----
+\newcommand{\resetalldisccolours}{
+\setcounter{disccolouraa}{0}\setcounter{disccolourab}{0}\setcounter{disccolourac}{0}
+\setcounter{disccolourad}{0}\setcounter{disccolourae}{0}\setcounter{disccolouraf}{0}
+\setcounter{disccolourag}{0}\setcounter{disccolourah}{0}\setcounter{disccolourba}{0}
+\setcounter{disccolourbb}{0}\setcounter{disccolourbc}{0}\setcounter{disccolourbd}{0}
+\setcounter{disccolourbe}{0}\setcounter{disccolourbf}{0}\setcounter{disccolourbg}{0}
+\setcounter{disccolourbh}{0}\setcounter{disccolourca}{0}\setcounter{disccolourcb}{0}
+\setcounter{disccolourcc}{0}\setcounter{disccolourcd}{0}\setcounter{disccolource}{0}
+\setcounter{disccolourcf}{0}\setcounter{disccolourcg}{0}\setcounter{disccolourch}{0}
+\setcounter{disccolourda}{0}\setcounter{disccolourdb}{0}\setcounter{disccolourdc}{0}
+\setcounter{disccolourdd}{0}\setcounter{disccolourde}{0}\setcounter{disccolourdf}{0}
+\setcounter{disccolourdg}{0}\setcounter{disccolourdh}{0}\setcounter{disccolourea}{0}
+\setcounter{disccoloureb}{0}\setcounter{disccolourec}{0}\setcounter{disccoloured}{0}
+\setcounter{disccolouree}{0}\setcounter{disccolouref}{0}\setcounter{disccoloureg}{0}
+\setcounter{disccoloureh}{0}\setcounter{disccolourfa}{0}\setcounter{disccolourfb}{0}
+\setcounter{disccolourfc}{0}\setcounter{disccolourfd}{0}\setcounter{disccolourfe}{0}
+\setcounter{disccolourff}{0}\setcounter{disccolourfg}{0}\setcounter{disccolourfh}{0}
+\setcounter{disccolourga}{0}\setcounter{disccolourgb}{0}\setcounter{disccolourgc}{0}
+\setcounter{disccolourgd}{0}\setcounter{disccolourge}{0}\setcounter{disccolourgf}{0}
+\setcounter{disccolourgg}{0}\setcounter{disccolourgh}{0}\setcounter{disccolourha}{0}
+\setcounter{disccolourhb}{0}\setcounter{disccolourhc}{0}\setcounter{disccolourhd}{0}
+\setcounter{disccolourhe}{0}\setcounter{disccolourhf}{0}\setcounter{disccolourhg}{0}
+\setcounter{disccolourhh}{0}}
+
+%------- Colour commands for annotations text ------------
+% Centres inputted annotation string for each square within a 20pt wide box. Text can spill outside the box and remains centred. Two commands, one for white, one for normal (typically black) text.
+\newcommand{\othellowhitetext}[1]{\makebox[20pt]{\textcolor{white}{#1}}}
+\newcommand{\othellonormaltext}[1]{\makebox[20pt]{#1}}
+
+% Conditional command that is used within each \annotations...row command. Takes two arguments. The first determines which of the two commands defined just above to execute (the white text command if arg is 2 or 4, black text command otherwise). The second argument is the string that gets fed into either the white text or black text command. The second argument is inputted by the user. The first string is going to be taken from the value of a disccolour... counter.
+\newcommand{\othelloannotation}[2]{%
+\ifthenelse{#1=2 \or #1=4}%
+{\othellowhitetext{#2}}%
+{\othellonormaltext{#2}}%
+}
+
+
+%-------Individual rows of the array. (LaTeX only takes up to 9 arguments in a \newcommand definition)
+% Discs/diamonds are placed horizontally and vertically at 24-unit intervals. Diameter 20 units.
+
+%----First Row (from the top, left to right)-----%
+\newcommand{\othelloarrayfirstrow}[8]%
+{%
+\put(12,180){\othellodisc{#1}} \setcounter{disccolouraa}{#1}% Places disc/diamond at a1 and stores value in counters declared above.
+\put(36,180){\othellodisc{#2}} \setcounter{disccolourba}{#2}
+\put(60,180){\othellodisc{#3}} \setcounter{disccolourca}{#3}
+\put(84,180){\othellodisc{#4}} \setcounter{disccolourda}{#4}
+\put(108,180){\othellodisc{#5}} \setcounter{disccolourea}{#5}
+\put(132,180){\othellodisc{#6}} \setcounter{disccolourfa}{#6}
+\put(156,180){\othellodisc{#7}} \setcounter{disccolourga}{#7}
+\put(180,180){\othellodisc{#8}} \setcounter{disccolourha}{#8}
+}
+%------Second Row--------%
+\newcommand{\othelloarraysecondrow}[8]%
+{%
+\put(12,156){\othellodisc{#1}} \setcounter{disccolourab}{#1}
+\put(36,156){\othellodisc{#2}} \setcounter{disccolourbb}{#2}
+\put(60,156){\othellodisc{#3}} \setcounter{disccolourcb}{#3}
+\put(84,156){\othellodisc{#4}} \setcounter{disccolourdb}{#4}
+\put(108,156){\othellodisc{#5}} \setcounter{disccoloureb}{#5}
+\put(132,156){\othellodisc{#6}} \setcounter{disccolourfb}{#6}
+\put(156,156){\othellodisc{#7}} \setcounter{disccolourgb}{#7}
+\put(180,156){\othellodisc{#8}} \setcounter{disccolourhb}{#8}
+}
+%-------Third Row-----%
+\newcommand{\othelloarraythirdrow}[8]%
+{%
+\put(12,132){\othellodisc{#1}} \setcounter{disccolourac}{#1}
+\put(36,132){\othellodisc{#2}} \setcounter{disccolourbc}{#2}
+\put(60,132){\othellodisc{#3}} \setcounter{disccolourcc}{#3}
+\put(84,132){\othellodisc{#4}} \setcounter{disccolourdc}{#4}
+\put(108,132){\othellodisc{#5}} \setcounter{disccolourec}{#5}
+\put(132,132){\othellodisc{#6}} \setcounter{disccolourfc}{#6}
+\put(156,132){\othellodisc{#7}} \setcounter{disccolourgc}{#7}
+\put(180,132){\othellodisc{#8}} \setcounter{disccolourhc}{#8}
+}
+%-------Fourth Row-----%
+\newcommand{\othelloarrayfourthrow}[8]%
+{%
+\put(12,108){\othellodisc{#1}} \setcounter{disccolourad}{#1}
+\put(36,108){\othellodisc{#2}} \setcounter{disccolourbd}{#2}
+\put(60,108){\othellodisc{#3}} \setcounter{disccolourcd}{#3}
+\put(84,108){\othellodisc{#4}} \setcounter{disccolourdd}{#4}
+\put(108,108){\othellodisc{#5}} \setcounter{disccoloured}{#5}
+\put(132,108){\othellodisc{#6}} \setcounter{disccolourfd}{#6}
+\put(156,108){\othellodisc{#7}} \setcounter{disccolourgd}{#7}
+\put(180,108){\othellodisc{#8}}\setcounter{disccolourhd}{#8}
+}
+%-------Fifth Row-----%
+\newcommand{\othelloarrayfifthrow}[8]%
+{%
+\put(12,84){\othellodisc{#1}} \setcounter{disccolourae}{#1}
+\put(36,84){\othellodisc{#2}} \setcounter{disccolourbe}{#2}
+\put(60,84){\othellodisc{#3}} \setcounter{disccolource}{#3}
+\put(84,84){\othellodisc{#4}} \setcounter{disccolourde}{#4}
+\put(108,84){\othellodisc{#5}} \setcounter{disccolouree}{#5}
+\put(132,84){\othellodisc{#6}} \setcounter{disccolourfe}{#6}
+\put(156,84){\othellodisc{#7}} \setcounter{disccolourge}{#7}
+\put(180,84){\othellodisc{#8}} \setcounter{disccolourhe}{#8}
+}
+%-------Sixth Row-----%
+\newcommand{\othelloarraysixthrow}[8]%
+{%
+\put(12,60){\othellodisc{#1}} \setcounter{disccolouraf}{#1}
+\put(36,60){\othellodisc{#2}} \setcounter{disccolourbf}{#2}
+\put(60,60){\othellodisc{#3}} \setcounter{disccolourcf}{#3}
+\put(84,60){\othellodisc{#4}} \setcounter{disccolourdf}{#4}
+\put(108,60){\othellodisc{#5}} \setcounter{disccolouref}{#5}
+\put(132,60){\othellodisc{#6}} \setcounter{disccolourff}{#6}
+\put(156,60){\othellodisc{#7}} \setcounter{disccolourgf}{#7}
+\put(180,60){\othellodisc{#8}} \setcounter{disccolourhf}{#8}
+}
+%-------Seventh Row-----%
+\newcommand{\othelloarrayseventhrow}[8]%
+{%
+\put(12,36){\othellodisc{#1}} \setcounter{disccolourag}{#1}
+\put(36,36){\othellodisc{#2}} \setcounter{disccolourbg}{#2}
+\put(60,36){\othellodisc{#3}} \setcounter{disccolourcg}{#3}
+\put(84,36){\othellodisc{#4}} \setcounter{disccolourdg}{#4}
+\put(108,36){\othellodisc{#5}} \setcounter{disccoloureg}{#5}
+\put(132,36){\othellodisc{#6}} \setcounter{disccolourfg}{#6}
+\put(156,36){\othellodisc{#7}} \setcounter{disccolourgg}{#7}
+\put(180,36){\othellodisc{#8}} \setcounter{disccolourhg}{#8}
+}
+%-------Eighth Row-----%
+\newcommand{\othelloarrayeighthrow}[8]%
+{%
+\put(12,12){\othellodisc{#1}} \setcounter{disccolourah}{#1}
+\put(36,12){\othellodisc{#2}} \setcounter{disccolourbh}{#2}
+\put(60,12){\othellodisc{#3}} \setcounter{disccolourch}{#3}
+\put(84,12){\othellodisc{#4}} \setcounter{disccolourdh}{#4}
+\put(108,12){\othellodisc{#5}} \setcounter{disccoloureh}{#5}
+\put(132,12){\othellodisc{#6}} \setcounter{disccolourfh}{#6}
+\put(156,12){\othellodisc{#7}} \setcounter{disccolourgh}{#7}
+\put(180,12){\othellodisc{#8}} \setcounter{disccolourhh}{#8}
+}
+
+
+%----Annotations Row by Row-----%
+%----First Row (from the top, left to right)-----%
+\newcommand{\annotationsfirstrow}[8]%
+{%
+\put(2,176.5){\othelloannotation{\value{disccolouraa}}{#1}} %Places text at a1 in white or normal font according to colour of the disc at that square. Calls upon counter value set when the disc was placed.
+\put(26,176.5){\othelloannotation{\value{disccolourba}}{#2}}
+\put(50,176.5){\othelloannotation{\value{disccolourca}}{#3}}
+\put(74,176.5){\othelloannotation{\value{disccolourda}}{#4}}
+\put(98,176.5){\othelloannotation{\value{disccolourea}}{#5}}
+\put(122,176.5){\othelloannotation{\value{disccolourfa}}{#6}}
+\put(146,176.5){\othelloannotation{\value{disccolourga}}{#7}}
+\put(170,176.5){\othelloannotation{\value{disccolourha}}{#8}}
+}
+%----Second Row------%
+\newcommand{\annotationssecondrow}[8]%
+{%
+\put(2,152.5){\othelloannotation{\value{disccolourab}}{#1}} \put(26,152.5){\othelloannotation{\value{disccolourbb}}{#2}} \put(50,152.5){\othelloannotation{\value{disccolourcb}}{#3}} \put(74,152.5){\othelloannotation{\value{disccolourdb}}{#4}} \put(98,152.5){\othelloannotation{\value{disccoloureb}}{#5}} \put(122,152.5){\othelloannotation{\value{disccolourfb}}{#6}} \put(146,152.5){\othelloannotation{\value{disccolourgb}}{#7}} \put(170,152.5){\othelloannotation{\value{disccolourhb}}{#8}}
+}
+%----Third Row------%
+\newcommand{\annotationsthirdrow}[8]%
+{%
+\put(2,128.5){\othelloannotation{\value{disccolourac}}{#1}} \put(26,128.5){\othelloannotation{\value{disccolourbc}}{#2}} \put(50,128.5){\othelloannotation{\value{disccolourcc}}{#3}} \put(74,128.5){\othelloannotation{\value{disccolourdc}}{#4}} \put(98,128.5){\othelloannotation{\value{disccolourec}}{#5}} \put(122,128.5){\othelloannotation{\value{disccolourfc}}{#6}} \put(146,128.5){\othelloannotation{\value{disccolourgc}}{#7}} \put(170,128.5){\othelloannotation{\value{disccolourhc}}{#8}}
+}
+%----Fourth Row-----%
+\newcommand{\annotationsfourthrow}[8]
+{%
+\put(2,104.5){\othelloannotation{\value{disccolourad}}{#1}} \put(26,104.5){\othelloannotation{\value{disccolourbd}}{#2}} \put(50,104.5){\othelloannotation{\value{disccolourcd}}{#3}} \put(74,104.5){\othelloannotation{\value{disccolourdd}}{#4}} \put(98,104.5){\othelloannotation{\value{disccoloured}}{#5}} \put(122,104.5){\othelloannotation{\value{disccolourfd}}{#6}} \put(146,104.5){\othelloannotation{\value{disccolourgd}}{#7}} \put(170,104.5){\othelloannotation{\value{disccolourhd}}{#8}}
+}
+%----Fifth Row-----%
+\newcommand{\annotationsfifthrow}[8]
+{%
+\put(2,80.5){\othelloannotation{\value{disccolourae}}{#1}} \put(26,80.5){\othelloannotation{\value{disccolourbe}}{#2}} \put(50,80.5){\othelloannotation{\value{disccolource}}{#3}} \put(74,80.5){\othelloannotation{\value{disccolourde}}{#4}} \put(98,80.5){\othelloannotation{\value{disccolouree}}{#5}} \put(122,80.5){\othelloannotation{\value{disccolourfe}}{#6}} \put(146,80.5){\othelloannotation{\value{disccolourge}}{#7}} \put(170,80.5){\othelloannotation{\value{disccolourhe}}{#8}}
+}
+%----Sixth Row-----%
+\newcommand{\annotationssixthrow}[8]
+{
+\put(2,56.5){\othelloannotation{\value{disccolouraf}}{#1}} \put(26,56.5){\othelloannotation{\value{disccolourbf}}{#2}} \put(50,56.5){\othelloannotation{\value{disccolourcf}}{#3}} \put(74,56.5){\othelloannotation{\value{disccolourdf}}{#4}}\put(98,56.5){\othelloannotation{\value{disccolouref}}{#5}}\put(122,56.5){\othelloannotation{\value{disccolourff}}{#6}}\put(146,56.5){\othelloannotation{\value{disccolourgf}}{#7}}\put(170,56.5){\othelloannotation{\value{disccolourhf}}{#8}}
+}
+%----Seventh Row-----%
+\newcommand{\annotationsseventhrow}[8]%
+{%
+\put(2,32.5){\othelloannotation{\value{disccolourag}}{#1}} \put(26,32.5){\othelloannotation{\value{disccolourbg}}{#2}} \put(50,32.5){\othelloannotation{\value{disccolourcg}}{#3}} \put(74,32.5){\othelloannotation{\value{disccolourdg}}{#4}} \put(98,32.5){\othelloannotation{\value{disccoloureg}}{#5}} \put(122,32.5){\othelloannotation{\value{disccolourfg}}{#6}} \put(146,32.5){\othelloannotation{\value{disccolourgg}}{#7}} \put(170,32.5){\othelloannotation{\value{disccolourhg}}{#8}}
+}
+%----Eighth Row-----%
+\newcommand{\annotationseighthrow}[8]%
+{%
+\put(2,8.5){\othelloannotation{\value{disccolourah}}{#1}} \put(26,8.5){\othelloannotation{\value{disccolourbh}}{#2}} \put(50,8.5){\othelloannotation{\value{disccolourch}}{#3}} \put(74,8.5){\othelloannotation{\value{disccolourdh}}{#4}} \put(98,8.5){\othelloannotation{\value{disccoloureh}}{#5}} \put(122,8.5){\othelloannotation{\value{disccolourfh}}{#6}} \put(146,8.5){\othelloannotation{\value{disccolourgh}}{#7}} \put(170,8.5){\othelloannotation{\value{disccolourhh}}{#8}}
+}
+
+%-----Grids-------%
+\newcommand{\othellogrid}{%
+% outside edges first, slightly thicker
+\thicklines
+\put(0,0){\line(0,1){192}}
+\put(192,0){\line(0,1){192}}
+\put(0,0){\line(1,0){192}}
+\put(0,192){\line(1,0){192}}
+% inside lines
+\thinlines
+\put(24,0){\line(0,1){192}}
+\put(48,0){\line(0,1){192}}
+\put(72,0){\line(0,1){192}}
+\put(96,0){\line(0,1){192}}
+\put(120,0){\line(0,1){192}}
+\put(144,0){\line(0,1){192}}
+\put(168,0){\line(0,1){192}}
+\put(0,24){\line(1,0){192}}
+\put(0,48){\line(1,0){192}}
+\put(0,72){\line(1,0){192}}
+\put(0,96){\line(1,0){192}}
+\put(0,120){\line(1,0){192}}
+\put(0,144){\line(1,0){192}}
+\put(0,168){\line(1,0){192}}
+}
+
+%Initially included dot markings (on the inner corners of each x-square) as part of the \othellogrid command, but people may prefer to leave them out. So there's a separate command to put them in.
+%-------Dot markings-------
+\newcommand{\dotmarkings}{%
+\put(48,48){\circle*{2.4}}
+\put(48,144){\circle*{2.4}}
+\put(144,144){\circle*{2.4}}
+\put(144,48){\circle*{2.4}}
+}
+
+
+%------Row and Column Labels-----%
+%Diagrams in some places, e.g. the British Othello Federation newsletter, leave off grid references.
+%Note the co-ordinates here are given relative to the picture box that contains the grid, which is 192x192 units and places bounding lines at (0,0)(left edge and bottom edge), (0,192)(top edge), and (192,0)(right edge). The co-ordinates below all fall *outside* this box. This seems like the neatest way of keeping the grid as a separate module from the grid labels. To ensure the labels, when used, don't bleed into the text surrounding a board diagram the grid is housed inside of a larger, 208x208 unit, box as part of the othelloboard environment.
+\newcommand{\gridrefs}{%
+\put(-10,10){\footnotesize{8}}
+\put(-10,34){\footnotesize{7}}
+\put(-10,58){\footnotesize{6}}
+\put(-10,82){\footnotesize{5}}
+\put(-10,106){\footnotesize{4}}
+\put(-10,130){\footnotesize{3}}
+\put(-10,154){\footnotesize{2}}
+\put(-10,178){\footnotesize{1}}
+\put(9.5,197){\footnotesize{a}}
+\put(33.5,197){\footnotesize{b}}
+\put(57.5,197){\footnotesize{c}}
+\put(81.5,197){\footnotesize{d}}
+\put(105.5,197){\footnotesize{e}}
+\put(129.5,197){\footnotesize{f}}
+\put(153.5,197){\footnotesize{g}}
+\put(177.5,197){\footnotesize{h}}
+}
+
+%-------Define Environments to shorten the code required for each diagram-------
+% To be used with \lrbox to work around environment definition restrictions on having unclosed braces in the begin code.
+\newsavebox{\fmboard}%
+
+% Instead of a counter to work around inability to use argument values for an environment definition in the end code, and the inability to pass counter values set in the begin code on to the end code.
+\newcommand{\scalefactor}{1}%
+
+% The othelloboard environment
+% The use of \frame is to put a clean border around the board, with definite corners. The way that LaTeX draws lines means that orthogonal lines from the same point don't form a nice corner. This starts to be noticeable with larger boards.
+\newenvironment{othelloboard}[1]%
+{\renewcommand{\scalefactor}{#1} \begin{lrbox}{\fmboard}\begin{picture}(192,192)\resetalldisccolours \othellogrid \gridrefs}
+{\end{picture} \end{lrbox} \scalebox{\scalefactor}{\begin{picture}(208,208)(-16,0) \frame{\usebox{\fmboard}} \end{picture}}}
+
+%The othelloboardnorefs environment
+\newenvironment{othelloboardnorefs}[1]%
+{\renewcommand{\scalefactor}{#1} \begin{lrbox}{\fmboard}\begin{picture}(192,192) \othellogrid}
+{\end{picture} \end{lrbox} \scalebox{\scalefactor}{\begin{picture}(192,192)(0,0) \frame{\usebox{\fmboard}} \resetalldisccolours \end{picture}}}
+
+
+%---- Commands used in the appendix of the documentation, in the example of counting discs using disccolourxy counters.
+\newcounter{numberwdiscs}% counter used in the following command for totting up the number of white discs
+\newcommand{\countwhitediscs}{% If the value of the disccolour counter at a square is 1, increment numberwdiscs, otherwise do nothing
+\ifthenelse{\equal{\value{disccolouraa}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourab}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourac}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourad}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourae}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolouraf}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourag}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourah}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourba}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbc}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbd}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbe}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbf}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbh}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourca}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcc}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcd}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolource}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcf}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourch}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourda}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdc}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdd}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourde}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdf}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdh}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourea}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloureb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourec}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloured}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolouree}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolouref}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloureg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloureh}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfa}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfc}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfd}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfe}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourff}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfh}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourga}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgc}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgd}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourge}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgf}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgh}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourha}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhb}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhc}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhd}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhe}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhf}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhg}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhh}}{1}}{\addtocounter{numberwdiscs}{1}}{}
+}
+
+
+\newcounter{numberbdiscs}
+\newcommand{\countblackdiscs}{%
+\ifthenelse{\equal{\value{disccolouraa}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourab}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourac}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourad}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourae}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolouraf}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourag}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourah}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourba}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbc}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbd}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbe}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbf}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourbh}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourca}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcc}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcd}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolource}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcf}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourcg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourch}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourda}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdc}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdd}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourde}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdf}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourdh}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourea}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloureb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourec}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloured}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolouree}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolouref}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloureg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccoloureh}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfa}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfc}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfd}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfe}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourff}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourfh}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourga}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgc}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgd}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourge}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgf}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourgh}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourha}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhb}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhc}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhd}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhe}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhf}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhg}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+\ifthenelse{\equal{\value{disccolourhh}}{2}}{\addtocounter{numberbdiscs}{1}}{}
+}
+
+
+%----- Command for placing annotations according to square name. Puts '#2' at square #1.
+\newcommand{\posannotation}[2]{%
+\ifthenelse{\equal{#1}{A1} \OR \equal{#1}{a1}}{\put(2,176.5){\othelloannotation{\value{disccolouraa}}{#2}}}{}
+\ifthenelse{\equal{#1}{B1} \OR \equal{#1}{b1}}{\put(26,176.5){\othelloannotation{\value{disccolourba}}{#2}}}{}
+\ifthenelse{\equal{#1}{C1} \OR \equal{#1}{c1}}{\put(50,176.5){\othelloannotation{\value{disccolourca}}{#2}}}{}
+\ifthenelse{\equal{#1}{D1} \OR \equal{#1}{d1}}{\put(74,176.5){\othelloannotation{\value{disccolourda}}{#2}}}{}
+\ifthenelse{\equal{#1}{E1} \OR \equal{#1}{e1}}{\put(98,176.5){\othelloannotation{\value{disccolourea}}{#2}}}{}
+\ifthenelse{\equal{#1}{F1} \OR \equal{#1}{f1}}{\put(122,176.5){\othelloannotation{\value{disccolourfa}}{#2}}}{}
+\ifthenelse{\equal{#1}{G1} \OR \equal{#1}{g1}}{\put(146,176.5){\othelloannotation{\value{disccolourga}}{#2}}}{}
+\ifthenelse{\equal{#1}{H1} \OR \equal{#1}{h1}}{\put(170,176.5){\othelloannotation{\value{disccolourha}}{#2}}}{}
+\ifthenelse{\equal{#1}{A2} \OR \equal{#1}{a2}}{\put(2,152.5){\othelloannotation{\value{disccolourab}}{#2}}}{}
+\ifthenelse{\equal{#1}{B2} \OR \equal{#1}{b2}}{\put(26,152.5){\othelloannotation{\value{disccolourbb}}{#2}}}{}
+\ifthenelse{\equal{#1}{C2} \OR \equal{#1}{c2}}{\put(50,152.5){\othelloannotation{\value{disccolourcb}}{#2}}}{}
+\ifthenelse{\equal{#1}{D2} \OR \equal{#1}{d2}}{\put(74,152.5){\othelloannotation{\value{disccolourdb}}{#2}}}{}
+\ifthenelse{\equal{#1}{E2} \OR \equal{#1}{e2}}{\put(98,152.5){\othelloannotation{\value{disccoloureb}}{#2}}}{}
+\ifthenelse{\equal{#1}{F2} \OR \equal{#1}{f2}}{\put(122,152.5){\othelloannotation{\value{disccolourfb}}{#2}}}{}
+\ifthenelse{\equal{#1}{G2} \OR \equal{#1}{g2}}{\put(146,152.5){\othelloannotation{\value{disccolourgb}}{#2}}}{}
+\ifthenelse{\equal{#1}{H2} \OR \equal{#1}{h2}}{\put(170,152.5){\othelloannotation{\value{disccolourhb}}{#2}}}{}
+\ifthenelse{\equal{#1}{A3} \OR \equal{#1}{a3}}{\put(2,128.5){\othelloannotation{\value{disccolourac}}{#2}}}{}
+\ifthenelse{\equal{#1}{B3} \OR \equal{#1}{b3}}{\put(26,128.5){\othelloannotation{\value{disccolourbc}}{#2}}}{}
+\ifthenelse{\equal{#1}{C3} \OR \equal{#1}{c3}}{\put(50,128.5){\othelloannotation{\value{disccolourcc}}{#2}}}{}
+\ifthenelse{\equal{#1}{D3} \OR \equal{#1}{d3}}{\put(74,128.5){\othelloannotation{\value{disccolourdc}}{#2}}}{}
+\ifthenelse{\equal{#1}{E3} \OR \equal{#1}{e3}}{\put(98,128.5){\othelloannotation{\value{disccolourec}}{#2}}}{}
+\ifthenelse{\equal{#1}{F3} \OR \equal{#1}{f3}}{\put(122,128.5){\othelloannotation{\value{disccolourfc}}{#2}}}{}
+\ifthenelse{\equal{#1}{G3} \OR \equal{#1}{g3}}{\put(146,128.5){\othelloannotation{\value{disccolourgc}}{#2}}}{}
+\ifthenelse{\equal{#1}{H3} \OR \equal{#1}{h3}}{\put(170,128.5){\othelloannotation{\value{disccolourhc}}{#2}}}{}
+\ifthenelse{\equal{#1}{A4} \OR \equal{#1}{a4}}{\put(2,104.5){\othelloannotation{\value{disccolourad}}{#2}}}{}
+\ifthenelse{\equal{#1}{B4} \OR \equal{#1}{b4}}{\put(26,104.5){\othelloannotation{\value{disccolourbd}}{#2}}}{}
+\ifthenelse{\equal{#1}{C4} \OR \equal{#1}{c4}}{\put(50,104.5){\othelloannotation{\value{disccolourcd}}{#2}}}{}
+\ifthenelse{\equal{#1}{D4} \OR \equal{#1}{d4}}{\put(74,104.5){\othelloannotation{\value{disccolourdd}}{#2}}}{}
+\ifthenelse{\equal{#1}{E4} \OR \equal{#1}{e4}}{\put(98,104.5){\othelloannotation{\value{disccoloured}}{#2}}}{}
+\ifthenelse{\equal{#1}{F4} \OR \equal{#1}{f4}}{\put(122,104.5){\othelloannotation{\value{disccolourfd}}{#2}}}{}
+\ifthenelse{\equal{#1}{G4} \OR \equal{#1}{g4}}{\put(146,104.5){\othelloannotation{\value{disccolourgd}}{#2}}}{}
+\ifthenelse{\equal{#1}{H4} \OR \equal{#1}{h4}}{\put(170,104.5){\othelloannotation{\value{disccolourhd}}{#2}}}{}
+\ifthenelse{\equal{#1}{A5} \OR \equal{#1}{a5}}{\put(2,80.5){\othelloannotation{\value{disccolourae}}{#2}}}{}
+\ifthenelse{\equal{#1}{B5} \OR \equal{#1}{b5}}{\put(26,80.5){\othelloannotation{\value{disccolourbe}}{#2}}}{}
+\ifthenelse{\equal{#1}{C5} \OR \equal{#1}{c5}}{\put(50,80.5){\othelloannotation{\value{disccolource}}{#2}}}{}
+\ifthenelse{\equal{#1}{D5} \OR \equal{#1}{d5}}{\put(74,80.5){\othelloannotation{\value{disccolourde}}{#2}}}{}
+\ifthenelse{\equal{#1}{E5} \OR \equal{#1}{e5}}{\put(98,80.5){\othelloannotation{\value{disccolouree}}{#2}}}{}
+\ifthenelse{\equal{#1}{F5} \OR \equal{#1}{f5}}{\put(122,80.5){\othelloannotation{\value{disccolourfe}}{#2}}}{}
+\ifthenelse{\equal{#1}{G5} \OR \equal{#1}{g5}}{\put(146,80.5){\othelloannotation{\value{disccolourge}}{#2}}}{}
+\ifthenelse{\equal{#1}{H5} \OR \equal{#1}{h5}}{\put(170,80.5){\othelloannotation{\value{disccolourhe}}{#2}}}{}
+\ifthenelse{\equal{#1}{A6} \OR \equal{#1}{a6}}{\put(2,56.5){\othelloannotation{\value{disccolouraf}}{#2}}}{}
+\ifthenelse{\equal{#1}{B6} \OR \equal{#1}{b6}}{\put(26,56.5){\othelloannotation{\value{disccolourbf}}{#2}}}{}
+\ifthenelse{\equal{#1}{C6} \OR \equal{#1}{c6}}{\put(50,56.5){\othelloannotation{\value{disccolourcf}}{#2}}}{}
+\ifthenelse{\equal{#1}{D6} \OR \equal{#1}{d6}}{\put(74,56.5){\othelloannotation{\value{disccolourdf}}{#2}}}{}
+\ifthenelse{\equal{#1}{E6} \OR \equal{#1}{e6}}{\put(98,56.5){\othelloannotation{\value{disccolouref}}{#2}}}{}
+\ifthenelse{\equal{#1}{F6} \OR \equal{#1}{f6}}{\put(122,56.5){\othelloannotation{\value{disccolourff}}{#2}}}{}
+\ifthenelse{\equal{#1}{G6} \OR \equal{#1}{g6}}{\put(146,56.5){\othelloannotation{\value{disccolourgf}}{#2}}}{}
+\ifthenelse{\equal{#1}{H6} \OR \equal{#1}{h6}}{\put(170,56.5){\othelloannotation{\value{disccolourhf}}{#2}}}{}
+\ifthenelse{\equal{#1}{A7} \OR \equal{#1}{a7}}{\put(2,32.5){\othelloannotation{\value{disccolourag}}{#2}}}{}
+\ifthenelse{\equal{#1}{B7} \OR \equal{#1}{b7}}{\put(26,32.5){\othelloannotation{\value{disccolourbg}}{#2}}}{}
+\ifthenelse{\equal{#1}{C7} \OR \equal{#1}{c7}}{\put(50,32.5){\othelloannotation{\value{disccolourcg}}{#2}}}{}
+\ifthenelse{\equal{#1}{D7} \OR \equal{#1}{d7}}{\put(74,32.5){\othelloannotation{\value{disccolourdg}}{#2}}}{}
+\ifthenelse{\equal{#1}{E7} \OR \equal{#1}{e7}}{\put(98,32.5){\othelloannotation{\value{disccoloureg}}{#2}}}{}
+\ifthenelse{\equal{#1}{F7} \OR \equal{#1}{f7}}{\put(122,32.5){\othelloannotation{\value{disccolourfg}}{#2}}}{}
+\ifthenelse{\equal{#1}{G7} \OR \equal{#1}{g7}}{\put(146,32.5){\othelloannotation{\value{disccolourgg}}{#2}}}{}
+\ifthenelse{\equal{#1}{H7} \OR \equal{#1}{h7}}{\put(170,32.5){\othelloannotation{\value{disccolourhg}}{#2}}}{}
+\ifthenelse{\equal{#1}{A8} \OR \equal{#1}{a8}}{\put(2,8.5){\othelloannotation{\value{disccolourah}}{#2}}}{}
+\ifthenelse{\equal{#1}{B8} \OR \equal{#1}{b8}}{\put(26,8.5){\othelloannotation{\value{disccolourbh}}{#2}}}{}
+\ifthenelse{\equal{#1}{C8} \OR \equal{#1}{c8}}{\put(50,8.5){\othelloannotation{\value{disccolourch}}{#2}}}{}
+\ifthenelse{\equal{#1}{D8} \OR \equal{#1}{d8}}{\put(74,8.5){\othelloannotation{\value{disccolourdh}}{#2}}}{}
+\ifthenelse{\equal{#1}{E8} \OR \equal{#1}{e8}}{\put(98,8.5){\othelloannotation{\value{disccoloureh}}{#2}}}{}
+\ifthenelse{\equal{#1}{F8} \OR \equal{#1}{f8}}{\put(122,8.5){\othelloannotation{\value{disccolourfh}}{#2}}}{}
+\ifthenelse{\equal{#1}{G8} \OR \equal{#1}{g8}}{\put(146,8.5){\othelloannotation{\value{disccolourgh}}{#2}}}{}
+\ifthenelse{\equal{#1}{H8} \OR \equal{#1}{h8}}{\put(170,8.5){\othelloannotation{\value{disccolourhh}}{#2}}}{}
+}
+
+%---- Automated transcript creation
+%---- Command for taking two characters at a time and writing a number at the square represented by the character pair, starting with 1.
+
+\newcommand{\drawtranscript}[1]{%
+\noblanks[q]{#1}%
+ \StrMid{\thestring}{1}{2}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{1}
+ \StrMid{\thestring}{3}{4}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{2}
+ \StrMid{\thestring}{5}{6}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{3}
+ \StrMid{\thestring}{7}{8}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{4}
+ \StrMid{\thestring}{9}{10}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{5}
+ \StrMid{\thestring}{11}{12}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{6}
+ \StrMid{\thestring}{13}{14}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{7}
+ \StrMid{\thestring}{15}{16}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{8}
+ \StrMid{\thestring}{17}{18}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{9}
+ \StrMid{\thestring}{19}{20}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{10}
+ \StrMid{\thestring}{21}{22}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{11}
+ \StrMid{\thestring}{23}{24}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{12}
+ \StrMid{\thestring}{25}{26}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{13}
+ \StrMid{\thestring}{27}{28}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{14}
+ \StrMid{\thestring}{29}{30}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{15}
+ \StrMid{\thestring}{31}{32}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{16}
+ \StrMid{\thestring}{33}{34}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{17}
+ \StrMid{\thestring}{35}{36}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{18}
+ \StrMid{\thestring}{37}{38}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{19}
+ \StrMid{\thestring}{39}{40}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{20}
+ \StrMid{\thestring}{41}{42}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{21}
+ \StrMid{\thestring}{43}{44}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{22}
+ \StrMid{\thestring}{45}{46}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{23}
+ \StrMid{\thestring}{47}{48}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{24}
+ \StrMid{\thestring}{49}{50}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{25}
+ \StrMid{\thestring}{51}{52}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{26}
+ \StrMid{\thestring}{53}{54}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{27}
+ \StrMid{\thestring}{55}{56}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{28}
+ \StrMid{\thestring}{57}{58}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{29}
+ \StrMid{\thestring}{59}{60}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{30}
+ \StrMid{\thestring}{61}{62}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{31}
+ \StrMid{\thestring}{63}{64}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{32}
+ \StrMid{\thestring}{65}{66}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{33}
+ \StrMid{\thestring}{67}{68}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{34}
+ \StrMid{\thestring}{69}{70}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{35}
+ \StrMid{\thestring}{71}{72}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{36}
+ \StrMid{\thestring}{73}{74}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{37}
+ \StrMid{\thestring}{75}{76}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{38}
+ \StrMid{\thestring}{77}{78}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{39}
+ \StrMid{\thestring}{79}{80}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{40}
+ \StrMid{\thestring}{81}{82}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{41}
+ \StrMid{\thestring}{83}{84}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{42}
+ \StrMid{\thestring}{85}{86}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{43}
+ \StrMid{\thestring}{87}{88}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{44}
+ \StrMid{\thestring}{89}{90}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{45}
+ \StrMid{\thestring}{91}{92}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{46}
+ \StrMid{\thestring}{93}{94}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{47}
+ \StrMid{\thestring}{95}{96}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{48}
+ \StrMid{\thestring}{97}{98}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{49}
+ \StrMid{\thestring}{99}{100}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{50}
+ \StrMid{\thestring}{101}{102}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{51}
+ \StrMid{\thestring}{103}{104}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{52}
+ \StrMid{\thestring}{105}{106}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{53}
+ \StrMid{\thestring}{107}{108}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{54}
+ \StrMid{\thestring}{109}{110}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{55}
+ \StrMid{\thestring}{111}{112}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{56}
+ \StrMid{\thestring}{113}{114}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{57}
+ \StrMid{\thestring}{115}{116}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{58}
+ \StrMid{\thestring}{117}{118}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{59}
+ \StrMid{\thestring}{119}{120}[\mytwochars]%
+ \expandafter\posannotation\expandafter{\mytwochars}{60}
+ }
+
+%------------Commands for drawing discs according to whether argument is dash, O or X.
+\newcommand{\othellodiscfromstring}[1]{%
+\ifthenelse{\equal{#1}{-}}{}{}%
+\ifthenelse{\equal{#1}{O} \or \equal{#1}{o}}{\whitedisc}{}%
+\ifthenelse{\equal{#1}{X} \or \equal{#1}{x}}{\blackdisc}{}%
+%\ifthenelse{#1=3}{\whitediamond}{}%
+%\ifthenelse{#1=4}{\blackdiamond}{}%
+}
+
+%----- Command for automated board creation from string of Os, Xs and -s. Sets values for each disccolourxy counter as well.
+\newcommand{\drawboardfromstring}[1]{%
+\StrMid{#1}{1}{1}[\mychar]%
+ \put(12,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolouraa}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolouraa}{1}}{}}%
+\StrMid{#1}{2}{2}[\mychar]%
+ \put(36,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourba}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourba}{1}}{}}%
+\StrMid{#1}{3}{3}[\mychar]%
+ \put(60,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourca}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourca}{1}}{}}%
+\StrMid{#1}{4}{4}[\mychar]%
+ \put(84,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourda}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourda}{1}}{}}%
+\StrMid{#1}{5}{5}[\mychar]%
+ \put(108,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourea}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourea}{1}}{}}%
+\StrMid{#1}{6}{6}[\mychar]%
+ \put(132,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfa}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfa}{1}}{}}%
+\StrMid{#1}{7}{7}[\mychar]%
+ \put(156,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourga}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourga}{1}}{}}%
+\StrMid{#1}{8}{8}[\mychar]%
+ \put(180,180){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourha}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourha}{1}}{}}%
+\StrMid{#1}{9}{9}[\mychar]%
+ \put(12,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourab}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourab}{1}}{}}%
+\StrMid{#1}{10}{10}[\mychar]%
+ \put(36,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbb}{1}}{}}%
+\StrMid{#1}{11}{11}[\mychar]%
+ \put(60,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourcb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourcb}{1}}{}}%
+\StrMid{#1}{12}{12}[\mychar]%
+ \put(84,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourdb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourdb}{1}}{}}%
+\StrMid{#1}{13}{13}[\mychar]%
+ \put(108,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccoloureb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccoloureb}{1}}{}}%
+\StrMid{#1}{14}{14}[\mychar]%
+ \put(132,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfb}{1}}{}}%
+\StrMid{#1}{15}{15}[\mychar]%
+ \put(156,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourgb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourgb}{1}}{}}%
+\StrMid{#1}{16}{16}[\mychar]%
+ \put(180,156){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourhb}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourhb}{1}}{}}%
+\StrMid{#1}{17}{17}[\mychar]%
+ \put(12,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourac}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourac}{1}}{}}%
+\StrMid{#1}{18}{18}[\mychar]%
+ \put(36,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbc}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbc}{1}}{}}%
+\StrMid{#1}{19}{19}[\mychar]%
+ \put(60,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourcc}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourcc}{1}}{}}%
+\StrMid{#1}{20}{20}[\mychar]%
+ \put(84,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourdc}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourdc}{1}}{}}%
+\StrMid{#1}{21}{21}[\mychar]%
+ \put(108,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourec}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourec}{1}}{}}%
+\StrMid{#1}{22}{22}[\mychar]%
+ \put(132,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfc}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfc}{1}}{}}%
+\StrMid{#1}{23}{23}[\mychar]%
+ \put(156,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourgc}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourgc}{1}}{}}%
+\StrMid{#1}{24}{24}[\mychar]%
+ \put(180,132){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourhc}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourhc}{1}}{}}%
+\StrMid{#1}{25}{25}[\mychar]%
+ \put(12,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourad}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourad}{1}}{}}%
+\StrMid{#1}{26}{26}[\mychar]%
+ \put(36,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbd}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbd}{1}}{}}%
+\StrMid{#1}{27}{27}[\mychar]%
+ \put(60,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourcd}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourcd}{1}}{}}%
+\StrMid{#1}{28}{28}[\mychar]%
+ \put(84,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourdd}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourdd}{1}}{}}%
+\StrMid{#1}{29}{29}[\mychar]%
+ \put(108,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccoloured}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccoloured}{1}}{}}%
+\StrMid{#1}{30}{30}[\mychar]%
+ \put(132,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfd}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfd}{1}}{}}%
+\StrMid{#1}{31}{31}[\mychar]%
+ \put(156,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourgd}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourgd}{1}}{}}%
+\StrMid{#1}{32}{32}[\mychar]%
+ \put(180,108){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourha}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourha}{1}}{}}%
+\StrMid{#1}{33}{33}[\mychar]%
+ \put(12,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourae}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourae}{1}}{}}%
+\StrMid{#1}{34}{34}[\mychar]%
+ \put(36,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbe}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbe}{1}}{}}%
+\StrMid{#1}{35}{35}[\mychar]%
+ \put(60,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolource}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolource}{1}}{}}%
+\StrMid{#1}{36}{36}[\mychar]%
+ \put(84,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourde}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourde}{1}}{}}%
+\StrMid{#1}{37}{37}[\mychar]%
+ \put(108,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolouree}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolouree}{1}}{}}%
+\StrMid{#1}{38}{38}[\mychar]%
+ \put(132,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfe}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfe}{1}}{}}%
+\StrMid{#1}{39}{39}[\mychar]%
+ \put(156,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourge}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourge}{1}}{}}%
+\StrMid{#1}{40}{40}[\mychar]%
+ \put(180,84){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourhe}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourhe}{1}}{}}%
+\StrMid{#1}{41}{41}[\mychar]%
+ \put(12,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolouraf}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolouraf}{1}}{}}%
+\StrMid{#1}{42}{42}[\mychar]%
+ \put(36,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbf}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbf}{1}}{}}%
+\StrMid{#1}{43}{43}[\mychar]%
+ \put(60,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourcf}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourcf}{1}}{}}%
+\StrMid{#1}{44}{44}[\mychar]%
+ \put(84,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourdf}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourdf}{1}}{}}%
+\StrMid{#1}{45}{45}[\mychar]%
+ \put(108,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolouref}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolouref}{1}}{}}%
+\StrMid{#1}{46}{46}[\mychar]%
+ \put(132,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourff}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourff}{1}}{}}%
+\StrMid{#1}{47}{47}[\mychar]%
+ \put(156,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourgf}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourgf}{1}}{}}%
+\StrMid{#1}{48}{48}[\mychar]%
+ \put(180,60){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourhf}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourhf}{1}}{}}%
+\StrMid{#1}{49}{49}[\mychar]%
+ \put(12,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourag}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourag}{1}}{}}%
+\StrMid{#1}{50}{50}[\mychar]%
+ \put(36,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbg}{1}}{}}%
+\StrMid{#1}{51}{51}[\mychar]%
+ \put(60,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourcg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourcg}{1}}{}}%
+\StrMid{#1}{52}{52}[\mychar]%
+ \put(84,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourdg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourdg}{1}}{}}%
+\StrMid{#1}{53}{53}[\mychar]%
+ \put(108,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccoloureg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccoloureg}{1}}{}}%
+\StrMid{#1}{54}{54}[\mychar]%
+ \put(132,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfg}{1}}{}}%
+\StrMid{#1}{55}{55}[\mychar]%
+ \put(156,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourgg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourgg}{1}}{}}%
+\StrMid{#1}{56}{56}[\mychar]%
+ \put(180,36){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourhg}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourhg}{1}}{}}%
+\StrMid{#1}{57}{57}[\mychar]%
+ \put(12,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourah}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourah}{1}}{}}%
+\StrMid{#1}{58}{58}[\mychar]%
+ \put(36,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourbh}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourbh}{1}}{}}%
+\StrMid{#1}{59}{59}[\mychar]%
+ \put(60,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourch}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourch}{1}}{}}%
+\StrMid{#1}{60}{60}[\mychar]%
+ \put(84,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourdh}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourdh}{1}}{}}%
+\StrMid{#1}{61}{61}[\mychar]%
+ \put(108,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccoloureh}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccoloureh}{1}}{}}%
+\StrMid{#1}{62}{62}[\mychar]%
+ \put(132,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourfh}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourfh}{1}}{}}%
+\StrMid{#1}{63}{63}[\mychar]%
+ \put(156,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourgh}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourgh}{1}}{}}%
+\StrMid{#1}{64}{64}[\mychar]%
+ \put(180,12){\expandafter\othellodiscfromstring\expandafter{\mychar}}%
+ \ifthenelse{\equal{\mychar}{X} \OR \equal{\mychar}{x}}{\setcounter{disccolourhh}{2}}{%
+ \ifthenelse{\equal{\mychar}{O} \OR \equal{\mychar}{o}}{\setcounter{disccolourhh}{1}}{}}%
+} \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 8d108e3db26..345f9ee7d0a 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -267,7 +267,8 @@ my @TLP_working = qw(
oberdiek objectz ocgtools ocr-b ocr-b-outline ocr-latex octavo ofs ogham
oldlatin oldstandard oldstyle
onlyamsmath onrannual opcit optional
- ordinalpt orkhun ot-tableau othello oubraces outline outliner overpic
+ ordinalpt orkhun ot-tableau othello othelloboard
+ oubraces outline outliner overpic
pagecont pagenote pagerange pagesLTS paper papercdcase papermas papertex
paralist parallel paratype paresse parrun parselines parskip passivetex
patch patchcmd patgen2-tutorial path pauldoc pawpict pax pbox pb-diagram
diff --git a/Master/tlpkg/tlpsrc/collection-games.tlpsrc b/Master/tlpkg/tlpsrc/collection-games.tlpsrc
index b6745a0dc66..d456e6663d3 100644
--- a/Master/tlpkg/tlpsrc/collection-games.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-games.tlpsrc
@@ -13,6 +13,7 @@ depend go
depend hexgame
depend jeopardy
depend othello
+depend othelloboard
depend psgo
depend sgame
depend skak
diff --git a/Master/tlpkg/tlpsrc/othelloboard.tlpsrc b/Master/tlpkg/tlpsrc/othelloboard.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/othelloboard.tlpsrc