%%%
%%% A Latex file for a 33 page document
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%
%%%%%%%%    ``Playing Nim on a Simplicial Complex''  
%%%%%%%%
%%%%%%%%     By Richard Ehrenborg (jrge@math.cornell.edu)
%%%%%%%%
%%%%%%%%     and Einar Steingr\'{\i}msson (einar@math.chalmers.se)
%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentstyle[12pt,epic,eepic]{article}
\textwidth  152 mm
\textheight  212 mm
\oddsidemargin 3mm
\evensidemargin 3mm

\begin{document}
\newcommand{\disp}{\displaystyle}
\newcommand{\p}{\prime}
\newcommand{\mex}{\mbox{\rm mex}}

\newcommand{\dd}{\Delta}
\newcommand{\sd}{$\Delta$}

\def\du{\mathop{{\cup}\kern -5.7 pt {\cdot}\kern 3 pt}}

\newcommand{\sseq}{\subseteq}
\newcommand\ra{\rightarrow}


\font\Cp = msbm10

\newcommand{\Fff}{\hbox{\Cp F}}
\newcommand{\Nnn}{\hbox{\Cp N}}

\newcommand{\qed}{\mbox{$\Box$}\\[\baselineskip]}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{example}[theorem]{Example}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{question}[theorem]{Question}

\newenvironment{proof}{\noindent {\bf Proof:}}{{\qed}}

\newenvironment{condition}[1]{\noindent {\bf Condition #1}}{}

\newcommand{\ev}{{\bf e}}
\newcommand{\nv}{{\bf n}}
\newcommand{\mv}{{\bf m}}
\newcommand{\pv}{{\bf p}}
\newcommand{\qv}{{\bf q}}
\newcommand{\xv}{{\bf x}}
\newcommand{\vv}{{\bf v}}
\newcommand{\zv}{\mbox{${\bf 0}$}}

\newcommand{\BB}{\mbox{$\cal B$}}
\newcommand{\EE}{{\cal E}}
\newcommand{\KK}{{\cal K}}
\newcommand{\OO}{{\cal O}}

\parskip = 12 pt

\setlength{\unitlength}{1 mm}
\newcommand\pt{\circle*{2}}
\texture{
aaaaaaaa 0 0 0 aaaaaaaa 0 0 0 
aaaaaaaa 0 0 0 aaaaaaaa 0 0 0 
aaaaaaaa 0 0 0 aaaaaaaa 0 0 0 
aaaaaaaa 0 0 0 aaaaaaaa 0 0 0 
}



\title{Playing Nim on a simplicial complex}

\author{Richard Ehrenborg\\
Department of Mathematics\\
White Hall\\
Cornell University\\
Ithaca, NY 14853-7901\\
USA\\
{\tt jrge@math.cornell.edu}
\and Einar Steingr\'{\i}msson\thanks{Partially supported by a grant
  from the Icelandic Council of Science}\\
Matematiska institutionen\\
Chalmers Tekniska H\"ogskola\\
\& G\"oteborgs universitet\\
S-412 96 G\"oteborg\\
Sweden\\
{\tt einar@math.chalmers.se}
}
\date{\small(Received December 12, 1995 --- Accepted March 6, 1996)}
\maketitle

\pagestyle{myheadings}
\markright{\sc the electronic journal of combinatorics 3 (1996),
  \#R9\hfill}
\thispagestyle{empty}


\begin{abstract}
  We introduce a generalization of the classical game of Nim by
  placing the piles on the vertices of a simplicial complex and
  allowing a move to affect the piles on any set of vertices that
  forms a face of the complex.  Under certain conditions on the
  complex we present a winning strategy.  These conditions are
  satisfied, for instance, when the simplicial complex consists of the
  independent sets of a binary matroid.  Moreover, we study four
  operations on a simplicial complex under which games on the complex
  behave nicely.  We also consider particular complexes that
  correspond to natural generalizations of classical Nim.
\end{abstract}

\bigskip
\centerline{\small Mathematics Subject Classification: 90D05, 90D43,
  90D44, 90D46.}


\newpage
\section{Introduction}


One of the classical games -- perhaps {\em the} classical game -- in
mathematics is the game of Nim.  It is a two player game, played as
follows. A set of piles of chips is given.  The players take turns
removing chips.  In a move, a player removes any positive number of
chips from one pile.  The winner is the player who takes the last
chip.  An elegant winning strategy for this game was first described
by Bouton \cite{Bouton}.  By virtue of the simplicity of this
strategy, Nim has since served as a yardstick for all impartial
two-player games (see \cite{BCG,Conway}) in the sense that any
position in such a game is equivalent to a position in Nim.

In this paper we generalize the game of Nim to a finite simplicial
complex $\Delta$.  Note that, in accordance with the following
definition, a simplicial complex is taken to be finite throughout the
paper.


\begin{definition}
  A {\em simplicial complex $\Delta$ on a finite set $V$} is a
  collection of subsets of $V$ such that
\begin{itemize}
\item[i)] $\{v\} \in \Delta$ for all $v \in V$.
\item[ii)] if $F \in \Delta$ and $G \sseq F$ then $G \in \Delta$.
\end{itemize}
The members of $\Delta$ are called\/ {\em simplices} or {\em faces},
and the elements of\/ $V$ are called {\em vertices}.
\end{definition}

Consider now the following generalization of the game Nim, which we
call {\em simplicial Nim}.  Let $\Delta$ be a simplicial complex.  On
each vertex of $\Delta$ place a pile of chips.  As before, the players
take turns removing chips, the difference being that a player is
allowed to remove chips from any non-empty set of piles if the
underlying vertices form a face in $\Delta$.  Observe that in a move,
a player may freely remove any (or all) chips on each vertex of the
face in question, but must remove at least one chip from some vertex.
Thus, classical Nim corresponds to the simplicial complex being a set
of disjoint vertices.  At the other extreme, if a simplicial complex
$\Delta$ consists of all subsets of $V$, then any game on $\Delta$ is
equivalent to a single Nim pile whose size is the sum of the sizes
of piles on $\Delta$.

A central role in this paper is played by the {\em circuits}, or
minimal non-faces, of a simplicial complex.  In
Section~\ref{section_circuit} we give a winning strategy for any
complex \sd\ such that each circuit of \sd\ contains a vertex not in
any other circuit.  That is, for such a complex we find the zero
positions (also called winning positions).  These are the positions
where the first player to move loses.


In Section~\ref{section_Binary} we introduce three conditions on a
simplicial complex $\Delta$. If these conditions are satisfied then
the zero positions of $\Delta$ can be explicitly characterized.  In
Section~\ref{section_matroid} we show that the simplicial complex
consisting of the independent sets of a binary matroid satisfies the
three conditions. Hence, on such a complex, there is an explicit
strategy for winning a game.

In Section~\ref{section_New_games_from_old} we consider three
operations on a simplicial complex under which games on the complex
behave nicely.  One of these operations consists of taking the {\em
 join} of two simplicial complexes.  The other two can be described as
``doubling a vertex'', that is, adding a vertex to a complex in such a
way that the new vertex is in some sense equivalent to a vertex in the
original complex.  These operations, or rather their inverses, can be
used to simplify complexes before analyzing their structure with
respect to the game.

In Section~\ref{section_length} we define the length of a zero
position.  The length measures the maximum length of an optimally
played game.  We determine its value for some classes of simplicial
complexes.

In Section~\ref{section_path} we study two families of simplicial
complexes which correspond to natural generalizations of classical Nim
and give partial results on their winning positions.  Finally, in
Section~\ref{section_concluding}, we mention some open problems.

                                
\section{Definitions and Preliminaries}
\label{section_Definitions}


We first introduce some notation for simplicial complexes, or {\em
  complexes}, for short.  Let \sd\ be a simplicial complex with vertex
set $V$.  A maximal face of \sd\ with respect to inclusion is called a
{\em facet}.  
Further, if $W\sseq V$, then the {\em subcomplex of $\Delta$ induced
  by $W$} is the complex $K$ on vertex set $W$ such that $F\sseq W$ is
a face of $K$ if and only if $F$ is a face of $\Delta$.  In other
words, $K$ is the restriction of $\Delta$ to $W$.  In this case, $K$
  is said to be an {\em induced subcomplex of \sd}.
  
  A subset $C$ of $V$ is called a {\em circuit} of $\Delta$ if $C$ is
  not a face of $\Delta$, but all proper subsets of $C$ are faces of
  $\Delta$. Hence, a circuit is a minimal non-face of $\Delta$.
  Topologically a circuit of \sd\ is the boundary of a simplex
  $\sigma$ where $\sigma$ is minimal with respect to not belonging to
  \sd.  When giving examples, we will frequently identify a simplicial
  complex with its {\em geometric realization}.  For a rigorous
  treatment of this and for more background on simplicial complexes,
  see \cite{Munkres}.

Given a complex $\Delta$ with vertex set $V$, let $\Nnn^{V}$ be the
set of vectors indexed by $V$ whose entries are non-negative integers.
Thus, each vector in $\Nnn^{V}$ corresponds to a position in a game on
$\Delta$.  That is, if $\nv \in \Nnn^{V}$, where $\nv = (n_v)_{v \in
  V}$, then the vector $\nv$ corresponds to the position where there
are $n_v$ chips on vertex $v$ for each $v \in V$.  Let $\ev(v)$ be the
$v$-th unit vector, that is, the vector whose $v$--th entry is 1 and
all other entries are 0.  For a subset $A$ of $V$ let
$$
\ev(A) = \sum_{v \in A} \ev(v) .  
$$
Further, for two vectors $\mv, \nv \in \Nnn^V$ we write $\mv \leq
\nv$ if $m_v \leq n_v$ for all $v \in V$.  If $\mv \neq \nv$ and $\mv
\leq \nv$ then we denote this by $\mv < \nv$.  Also, let $\min(\nv)$
be the minimum among the coordinates of $\nv$ and let $\max(\nv)$ be
the maximum.

An {\em impartial two player game} (or {\em Nim game}) is a game
where two players take turns making moves and where, in a given
position, the allowed moves do not depend on whose turn it is.
This is
the case for Nim and for the generalization we will consider
here.  In an impartial two player game
each position is recursively
assigned a {\em value}.  For a finite subset $A$ of $\Nnn$, the {\em
  minimal excluded value} of $A$, $\mex(A)$, is the smallest integer
in $\Nnn - A$. That is, $\mex(A) = \min(\Nnn - A)$.  We use the
notation $\nv \rightarrow \mv$ to indicate that there is a legal move
from the position $\nv$ to the position $\mv$.  The value of a
position is defined recursively by
%
$$
v(\nv) = \mex\left( \{ v(\mv) \:\: : \:\: \nv \rightarrow \mv \}
\right) , 
$$
%
and $v({\bf 0}) = 0$.  The value of a position is also known as the
position's {\em Grundy number} or {\em Sprague-Grundy number} (see
\cite{BCG,Conway,Sprague}).

A game which is guaranteed to end in a finite number of moves is
called {\em short}.

The positions with value zero are called {\em winning} or {\em zero
  positions}.  In principle, knowing the set of zero positions for a
short game is equivalent to knowing a winning strategy for the game.
This can be seen from the following characterization of zero
positions, the proof of which is omitted.

\begin{theorem}\label{theorem_abc}
  In a short impartial two player game a set $W$ is the set of zero
  positions if and only if
\begin{itemize}
\item[{\bf (a)}] the final positions (in our case the position \zv)
  belong to $W$,

\item[{\bf (b)}]
there is not a move from a position in $W$ to another position in $W$, and

\item[{\bf (c)}]
for every position not in $W$ there is a move to a position in $W$.
\end{itemize}
\end{theorem}
This characterization is crucial in establishing that a strategy is
indeed a winning strategy.

We end this section with two basic results.

\begin{lemma}
If $C$ is a circuit of the simplicial complex $\Delta$ then
$n \cdot \ev(C)$ is a zero position for all $n \in \Nnn$.
\label{lemma_circuit}
\end{lemma}
\begin{proof}
  For $n = 0$, this is clear.  Suppose, then, that $n>0$ and let $\nv
  = n\cdot \ev(C)$.  Assuming that there is a move $\nv\ra\mv$, let
  $k= \min(\mv)$ and let $v$ be a vertex such that $m_v=k$.  Observe
  that since $C$ is not a face of $\Delta$, the move cannot have left
  all the piles empty.  Since $C$ is a circuit, $C-\{v\}$ is a face,
  so we can reduce the piles on each vertex of $C-\{v\}$ to $k$, and
  then repeat the strategy until $k=0$.
\end{proof}
%
Let $K$ and $H$ be two simplicial complexes on vertex sets $V_K$ and
$V_H$, respectively. A map $\phi:V_K\ra V_H$ is {\em simplicial}\/ if
$\phi(F)$ is a face of $H$ whenever $F$ is a face of $K$.  A
{\em simplicial bijection}
is an invertible simplicial map whose inverse is
also simplicial.


\begin{lemma}\label{involution}
Let $\Delta$ be a simplicial complex and suppose there is a simplicial
bijection $\phi:\dd\ra \dd$ such that
\begin{itemize}
\item[i)] $\phi= \phi^{-1}$ (that is, $\phi$ is an involution), and
\item[ii)] if $F$ is a facet of $\Delta$ then $F$ and $\phi(F)$ are
disjoint.
\end{itemize}
Then every position $\nv$ on $\Delta$ such that $n_x =n_{\phi(x)}$ is a
zero position.
\end{lemma}
\begin{proof}
Given such a position, any move on a facet $F$ can be countered by the
corresponding move on $\phi(F)$, restoring the symmetry.
\end{proof}
%
Observe that this lemma does not describe {\em all}\/ zero positions
on a complex that possesses such a simplicial bijection.  For
instance, in classical Nim with an even number of piles, any pairing
of piles (vertices) satisfies the hypotheses of the lemma, but a zero
position need not consist of pairs of equal piles.

                                
\section{Pointed circuit complexes}
\label{section_circuit}


As we have seen in Lemma~\ref{lemma_circuit}, the circuits of a
simplicial complex \sd\ are essential in determining the zero
positions on $\Delta$.  We  now introduce a condition on the
collection of circuits under which the zero positions of \sd\ can be
characterized.


\begin{definition}%
  A circuit $C$ in a simplicial complex \sd\ is {\em pointed} if it
  has a vertex which belongs to no other circuit of \sd.  Such a
  vertex $v$ is called a {\em point of $C$} and $C$ is said to be {\em
    pointed by} $v$.  If every circuit of \sd\ is pointed, then \sd\ 
  is said to be a {\em pointed circuit complex}.
\end{definition} 

Observe that if $S$ is a set of vertices in a complex \sd\ and $S$ is
not a face of \sd, then $S$ must contain a circuit of \sd.

\begin{theorem}
  Let $\Delta$ be a pointed circuit complex, and let ${\cal C}$ be the
  collection of circuits of $\Delta$.  Then the zero positions of
  $\Delta$ are those of the form
%
$$
  \sum_{C \in {\cal C}} a_{C} \cdot \ev(C) , 
$$
%
where $a_{C}$ is a non-negative integer for each circuit $C$.
\label{theorem_pointed}
\end{theorem}
\begin{proof}
  Let $W$ be the set of positions described in the statement of the
  theorem. Clearly ${\bf 0} \in W$.  Let $\nv$ be a position on
  $\Delta$.  We must show that either $\nv$ is in the set $W$ or else
  there is a move $\nv \rightarrow \mv$ where $\mv$ belongs to $W$.
    If $\nv \ne \zv$ and the position is not an immediate win, then
  $\nv$ must be supported by some circuit, that is, we must have
  $n_v>0$ for all vertices $v$ in some circuit $C$.  Pick a
  non-negative integer $a_C$ for each circuit $C$ so that
%
$$
\mv = \sum_{C \in {\cal C}} a_{C} \cdot \ev(C)  \leq \nv.
$$
%
If there is a circuit $C$ such that $m_{v} < n_{v}$ for all vertices
$v$ in $C$, then we may increase $a_{C}$ by $1$ and the above
inequality will still hold.  Hence we may assume that for each circuit
$C$ there is a vertex $u(C)$ such that $m_{u(C)} = n_{u(C)}$.
Consider the set
%
$$    
F   =  \{v \in V \:\: : \:\: m_v < n_v\}  .  
$$
%
Observe that $F$ contains no circuit $C$ of \sd\ since $u(C) \not\in
F$.  Thus $F$ is face of $\Delta$.  If $F$ is empty then $\nv = \mv
\in W$.  If $F$ is non-empty we can make the move $\nv \rightarrow \mv
\in W$.  Thus, for every position $\nv\not\in W$ there is a move
$\nv\ra\mv$ where $\mv\in W$.  Note that so far we have not used the
assumption that \sd\ is a pointed circuit complex.

We now show that there is no move from a position in $W$ to another
position in $W$.  Assume, on the contrary, that there is a move $\nv
\rightarrow \mv$, where $\nv, \mv \in W$.  We may then write
%
$$
\nv = \sum_{C \in {\cal C}} a_{C} \cdot \ev(C) \:\:\:\: \mbox{ and
  } \:\:\:\: \mv = \sum_{C \in {\cal C}} b_{C} \cdot \ev(C) .
$$
%
Now, each circuit $C$ has a vertex $p(C)$ which belongs to no other
circuit.  Thus we have that $b_{C} = m_{p(C)} \leq n_{p(C)} =
a_{C}$ for each circuit $C$.  Since there is a move $\nv \rightarrow
\mv$, there must be at least one circuit $C$ such that $b_{C} <
a_{C}$.  But then $\nv\ra \mv$ is not a legal move since it would
entail decreasing the piles on all the vertices in the circuit $C$.
Hence, there is no move from a position in $W$ to another position in
$W$.
\end{proof}
%
\begin{figure}
\begin{center}
\begin{picture}(35,35) 

\shade\path(0,5)(15,15)(7,30)(0,5)
\shade\path(15,15)(7,30)(23,30)(15,15)
\shade\path(15,15)(23,30)(30,5)(15,15)
\path(0,5)(30,5)

%
      \put(7,30){\pt}          \put(23,30){\pt}
%
                   \put(15,15){\pt}
\put( 0,5){\pt}                             \put( 30,5){\pt}       
%
%
      \put(7,34){\makebox(0,0){2}}          \put(23,34){\makebox(0,0){4}}
%
                   \put(15,11){\makebox(0,0){3}}
\put( 0,1){\makebox(0,0){1}}                  \put( 30,1){\makebox(0,0){5}}       
%

\end{picture}
\caption{The pointed circuit complex of Example~\ref{example_ten}.}
\label{figure_one}
\end{center}
\end{figure}


\begin{example}
\label{example_ten}
{\rm Let $\Delta$ be the simplicial complex with facets $\{1,2,3\}$,
  $\{2,3,4\}$, $\{3,4,5\}$, and $\{1,5\}$ (see
  Figure~\ref{figure_one}).  Then the circuits of $\Delta$, namely
  $\{1,3,5\}$, $\{1,4\}$, and $\{2,5\}$, are all pointed, with points
  3, 4 and 2, respectively.  Hence the zero positions of $\Delta$ are
  given by
%
$$
          a \cdot \ev(\{1,3,5\})
          + b \cdot \ev(\{1,4\})
          + c \cdot \ev(\{2,5\})
       =
          (a+b, c, a, b, a+c)  .  
$$
}
\end{example}


\begin{example}
  {\rm Let $\Delta$ be the simplicial complex with facets
    $\{1,2,3,4\}$, $\{2,3,4,5\}$, $\{1,2,5\}$, and $\{1,4,5\}$.  Then
    the circuits of $\Delta$ are $\{1,2,4,5\}$ and $\{1,3,5\}$.
    Clearly these are pointed by 2 and 3, respectively.
    Hence the zero positions of $\Delta$ are given by
$$
a \cdot \ev(\{1,2,4,5\}) + b \cdot \ev(\{1,3,5\}) = (a+b, a, b, a, a+b) .
$$
}
\end{example}








\newpage                                
\section{Nim-regular complexes}
\label{section_Binary}

Any vector $\nv \in \Nnn^{V}$ has a unique {\em binary expansion},
that is, we may write
$$ 
\nv = \sum_{i \geq 0} 2^{i} \cdot \ev(A_i), 
$$
where $A_0, A_1, \ldots$ are subsets of $V$ and where, for $i$
large enough, each $A_i$ is empty.  For such a position $\nv$, we say
that $2^i$ {\em is carried by} $A_i$.

If $X$, $Y$, $Z$ are three sets then by $Z = X \du Y$ we mean that $Z$
is the disjoint union of $X$ and $Y$, that is to say, that $X \cap Y =
\emptyset$ and $Z = X\cup Y$.  We will frequently write $X\du Y$ to
emphasize that $X$ and $Y$ are disjoint.  Note that in what follows,
the use of $S-T$, where $S$ and $T$ are sets, does not imply that $S$
contains $T$.

Let $\Delta$ be a simplicial complex with vertex set $V$ and let $\BB$ be
a collection of subsets of $V$.  We will now describe three conditions
on $\Delta$ and $\BB$ which together imply that the zero positions of
$\Delta$ have nice binary expansions with respect to \BB.

\begin{definition}%
\mbox{ }

\noindent
{\bf Condition (A)}
The empty set belongs to $\BB$.

\noindent
{\bf Condition (B)}
Suppose that $F$ is a face of $\Delta$, that $B, B' \in \BB$ and that
$B'= F \du B$.  Then $F$ is the empty face.

\noindent
{\bf Condition (C)}
Let $F$ be a face of $\Delta$ and let $S$ be a subset of $V$.  Then
there exist faces $K$ and  $G$ of \sd, with $K\sseq F\sseq G$, such
that $G - F \sseq S$ and $(S - G) \du K \in \BB$.
\end{definition} 
%
These three conditions play an important role in the proofs in this
section.  Observe that in these proofs the conditions (A), (B), and
(C) correspond, respectively, to statements (a), (b), and (c) in
Theorem~\ref{theorem_abc}.



\begin{definition}%
  Let \sd\ be a simplicial complex and $\BB$ a collection of subsets
  of \sd\ such that Conditions {\rm (A), (B), {\em and} (C)} are
  satisfied.  Then $\BB$ is said to be a {\em Nim-basis} for~\sd.  A
  simplicial complex which has a Nim-basis is said to be {\em
    Nim-regular}.
\end{definition} 

The reason for the above definitions is that the zero positions of a
Nim-regular complex \sd\ can be completely characterized in terms of
\BB.  Moreover, we will see in Section~\ref{section_matroid} that in
the case of binary matroids the collection~$\BB$ will emerge as a
naturally defined object.

It follows from Condition (B) that no non-empty face $F$ of \sd\ can
belong to a Nim-basis of \sd.  For otherwise, letting $B=F$ and
$B'=\emptyset\in \BB$, we obtain $B=F\du B'$, contradicting Condition
(B).

It is easy to verify that for a complex \sd\ consisting of a single
simplex (that is, of all subsets of the vertex set $V$), the
collection containing the empty set as its only element is a Nim-basis
for \sd.

A complex \sd\ with no Nim-basis is shown in Figure~\ref{figure_no_basis}.
Letting $S=\{a\}$ and $F=\{c\}$ we get from Condition (C) that either
$\{a\}\in\BB$ or $\{a,c\}\in\BB$.  By Condition (B) we cannot have
$\{a\}\in\BB$, so $\{a,c\}\in\BB$.  Similarly, with $S=\{a,b\}$ and
$F=\{c\}$ we get that $\{a,b,c\}\in\BB$.  But $\{a,b,c\} = \{b\}\du
\{a,c\}$, which contradicts Condition (B), so \sd\ has no Nim-basis.
Observe also that any complex containing \sd\ as an induced subcomplex
lacks a Nim-basis.


\setlength{\unitlength}{1 mm}

\begin{figure}
\begin{center}
\begin{picture}(170,10)  

\put(60,5){
\put(0,5){
\multiput(0,0)(15,0){3}{\pt}
\path(0,0)(15,0)
}
\put(0,0){\makebox(0,0){$a$}}
\put(15,0){\makebox(0,0){$b$}}
\put(30,0){\makebox(0,0){$c$}}
}
\end{picture}
\caption{A simplicial complex with no Nim-basis.}
\label{figure_no_basis}
\end{center}
\end{figure}




As a further example, consider classical Nim, corresponding to a
complex consisting of $n$ isolated vertices, one for each pile.  Then
it is easily checked that the collection of all subsets of vertices of
even cardinality is a Nim-basis.  We will now generalize this
situation to arbitrary Nim-regular complexes and give an explicit
description of the zero positions on such complexes.


\begin{proposition}\label{proposition_reverse}
Suppose there exists a collection $\BB$ of subsets of $V$ such that
the zero positions of $\Delta$ are precisely those that have the form
$$ 
\sum_{i \geq 0} 2^i \cdot \ev(A_i) , 
$$
with $A_i$ in $\BB$ for all $i \geq 0$. Then $\Delta$ is
Nim-regular and $\BB$ is a Nim-basis for \sd.
\end{proposition}
\begin{proof}
  We verify that $\BB$ satisfies the conditions (A), (B) and (C).

\noindent
(A) Since ${\bf 0}$ is a zero position, it is clear that the empty set
must belong to $\BB$.


\noindent
(B) Assume that $F$ is a non-empty face of \sd, that $B,B'\in \BB$,
and that $B'=F\du B$.  Then $\ev(B') = \ev(F \du B) \rightarrow
\ev(B)$ is a legal move, but that contradicts the assumption that both
$\ev(B)$ and $\ev(B')$ are zero positions.

\noindent
(C) Recall that no non-empty face of \sd\ 
belongs to $\BB$.  Consider the position $2 \cdot \ev(F) +\ev(S)$,
where $F$ is a non-empty face of \sd.  This is a non-zero position
because $F$, which carries $2^1$, does not belong to $\BB$.  Thus we
can make a move to a zero position.
This zero position must have the form~$\ev(T)$
because leaving any piles of size $2$ or $3$ would necessarily mean
that $2^1$ was carried by a non-empty face $H\sseq F$, but $H\not\in
\BB$.  Let $K = T \cap F$ and let $G = F \cup (S-T)$.  Observe that
$G$ is the set on which the move was made.  Thus $G$ is a face.
Moreover, it can be verified that $(S - G) \du K = T$, which belongs
to the collection $\BB$.
\end{proof}
%
The converse of this proposition is more interesting.
\begin{theorem}
  Assume that $\Delta$ is a Nim-regular simplicial complex with
  Nim-basis $\BB$.  Then a position $\nv$ is a zero position on
  $\Delta$ if and only if
%
$$
  \nv = \sum_{i \geq 0} 2^i   \cdot \ev(A_i),
$$ 
%
where $A_i$ belongs to $\BB$ for all $i \geq 0$.
\label{theorem_Alice}
\end{theorem}
\begin{proof}
Let $W$ be the set of positions described in the statement of the
theorem.  We verify that $W$ satisfies the conditions in
Theorem~\ref{theorem_abc}.

\noindent
(a)
Observe that ${\bf 0} \in W$, since $\emptyset \in \BB$.

\noindent
(b) We now show that it is impossible to move from a position in $W$
to another position in $W$.  Assume, on the contrary, that $\nv$ and
$\mv$ are two positions belonging to $W$ such that $\nv \rightarrow
\mv$.  Suppose the binary expansions of these positions are given by
%
$$
 \nv = \sum_{i \geq 0} 2^i \cdot \ev(A_i) ,
\:\:\:\: \:\:\:\: \mv = \sum_{i \geq 0} 2^i \cdot \ev(B_i).  
$$ 
%
Let $k$ be the largest index where $A_i$ and $B_i$ differ.  We then
have that $B_k \sseq A_k$ and $B_k \not = A_k$, so $A_k - B_k$ is a
non-empty face.  But this contradicts Condition~(B), since both $A_k$
and $B_k$ belong to~$\BB$.

\noindent
(c) It remains to be shown that for any position $\nv$ not in $W$
there is a move $\nv\ra\mv\in W$.  Let $\nv$ be a position which does
not belong to $W$.  As before, let $\nv$ have the binary expansion
%
$$
\nv= \sum_{i \geq 0} 2^i \cdot \ev(A_i) . 
$$
%
Let $N$ be the largest index such that $A_N \neq \emptyset$.  Let
$F_N$ and $G_{N+1}$ both be the empty set, which is a face.  For $i =
N, N-1, \ldots, 0$ use Condition~(C) with $F = F_i$ and $S = A_i$ to
find faces $K_i$ and $G_i$ such that $K_i\sseq F_i\sseq G_i,$
$G_i-F_i\sseq A_i$, and $B_i\in\BB$, where $B_i= (A_i-G_i)\du K_i$.
Moreover, let $F_{i-1} = G_i$, which implies that $G_i\subseteq
G_{i-1}$.

Let $\mv$ be the position given by $$ \mv = \sum_{i = 0}^{N} 2^i \cdot
\ev(B_i) . $$ Clearly $\mv$ belongs to $W$.  We need to show that the
move $\nv \rightarrow \mv$ is  legal.

Since $B_i = (A_i - G_i) \du K_i$ and $K_i\sseq G_i$, we have that $B_i
- G_i = A_i - G_i$.  Recall that $G_N \sseq G_{N-1} \sseq \cdots \sseq
G_0$.  Thus $G_i \sseq G_0$, so $B_i - G_0 = A_i - G_0$.  Hence for
all $v \not\in G_0$ we have that $n_{v} = m_{v}$.

Now consider $v \in G_0$.  Let $k$ be the largest index such that $v
\in G_k$. Hence $v \not\in G_{k+1} = F_k$.  Since $G_k - F_k \sseq
A_k$, we have that $v \in A_k$.  Also $v \not\in F_k$ implies that $v
\not\in K_k$, so $v \not\in (A_k - G_k) \du K_k = B_k$.  Moreover,
for $i \geq k+1$ we have $G_i \sseq G_k$.  Since $B_i - G_i = A_i
- G_i$ we have that $B_i - G_k = A_i - G_k$.  This implies that
$\chi(v \in B_i) = \chi(v \in A_i)$ for all $i \geq k+1$, where $\chi$
is the function which, for any statement $S$, has the value $1$ if $S$
is true and $0$ otherwise.  Now we have that
\begin{eqnarray*}
m_v
  & = &
\sum_{i=0}^{N} 2^i \cdot \chi(v \in B_i) \\
  & = &
\sum_{i=0}^{k-1} 2^i \cdot \chi(v \in B_i)
  +
\sum_{i=k+1}^{N} 2^i \cdot \chi(v \in B_i) \\
  & \leq &
\sum_{i=0}^{k-1} 2^i 
  +
\sum_{i=k+1}^{N} 2^i \cdot \chi(v \in B_i) \\
& < &
     2^k
  +
\sum_{i=k+1}^{N} 2^i \cdot \chi(v \in B_i) \\
  & = &
     2^k
  +
\sum_{i=k+1}^{N} 2^i \cdot \chi(v \in A_i) \\
  & \leq &
\sum_{i=0}^{k-1} 2^i \cdot \chi(v \in A_i)
  +
     2^k
  +
\sum_{i=k+1}^{N} 2^i \cdot \chi(v \in A_i) \\
  & = &
\sum_{i=0}^{N} 2^i \cdot \chi(v \in A_i)
    =
n_v .
\end{eqnarray*}
Hence we have that $m_v < n_v$ for $v \in G_0$.  Recall that $G_0$ is
a face of $\Delta$.  Moreover, $G_0$ is non-empty, since $G_0 =
\emptyset$ implies $A_i = B_i$ for all $i$ and that would contradict
that $\nv$ is not in $W$.  Therefore, the move $\nv \rightarrow \mv$
is a legal move.
\end{proof}
%
\noindent
Observe that the preceding theorem implies that a Nim-basis is
unique.  In the sequel, we can therefore talk about {\em the}
Nim-basis of a complex when such a basis exists.

Theorem~\ref{theorem_Alice}, together with Lemma~\ref{lemma_circuit}, now
leads to the following corollary.

\begin{corollary}{%
    Suppose \sd\ is a Nim-regular complex and that $\BB$ is the
    Nim-basis of \sd.  Then every circuit of~\sd\ belongs to~$\BB$.  }
  \qed
\end{corollary}



\begin{figure}
\begin{center}
\begin{picture}(40,35)
\put(0,5){
\shade\path(0,5)(25,0)(40,20)(0,5)

       \put(12,30){\pt} \put(11,34){\makebox(0,0){1}}
%
                             \put(40,20){\pt}   \put(44,21){\makebox(0,0){4}}
%
                   
\put( 0,5){\pt}   \put(-4,4){\makebox(0,0){2}}                           
                         \put( 25,0){\pt}   \put(26,-4){\makebox(0,0){3}}        
%
\path(0,5)(12,30)(25,0)(40,20)(12,30)

}
\end{picture}
\caption{The Nim-regular complex of Example~\ref{example_one}.}
\label{figure_two}
\end{center}
\end{figure}

\vspace{-36pt}
\begin{example}
\label{example_one}
{\rm Consider the simplicial complex $\Delta$ on the set $V =
  \{1,2,3,4\}$ with facets $\{1,2\}$, $\{1,3\}$, $\{1,4\}$, and
  $\{2,3,4\}$ (see Figure~\ref{figure_two}).  Let $\BB = \{\emptyset,
  \{1,2,3\}, \{1,2,4\}$, $\{1,3,4\}\}$.  Then \sd\ is Nim-regular and
  $\BB$ is the Nim-basis for \sd.  Hence the zero positions of
  $\Delta$ are those of form $\sum_{i \geq 0} 2^i \cdot \ev(A_i)$,
  where $A_i \in \BB$.  As an example, the position
$$
  (7,3,5,6) = \ev(\{1,2,3\}) + 2 \cdot \ev(\{1,2,4\}) + 4 \cdot
  \ev(\{1,3,4\})
$$
is a zero position on \sd.  Note that the non-empty sets of~$\BB$ are
precisely the circuits of \sd.  }
\end{example}

Let $\dd_k(V)$ be the simplicial complex whose facets are all the
$(k-1)$-subsets of~$V$.  That is, a subset of $V$ is a face if and
only if its cardinality is less than $k$.  Thus, $\dd_k(V)$ is the
{\em $(k-1)$--skeleton} of the simplex with vertex set $V$. Playing on
$\dd_k(V)$ is equivalent to playing Nim on $|V|$ piles with a move
allowed to affect at most $k-1$ piles.

The following proposition first appeared in \cite{Moore}, though Moore
did not give a proof in his short paper. It is also discussed in
\cite[chapter~15, page~498]{BCG}, \cite[section~122, page~151]{Schuh},
and~\cite{Schwartz}.
\begin{proposition}[E.\ H.\ Moore]
The zero positions of $\dd_k(V)$ are those of the form $\sum_{i \geq
  0} 2^i \cdot \ev(A_i)$, where $|A_i| \equiv 0 \bmod k$.
\label{proposition_Moore}
\end{proposition}
\begin{proof}
  Let $\BB = \{ B \sseq V \:\: : \:\: |B| \equiv 0 \bmod k\}$.  We
  show that $\dd_k(V)$ is Nim-regular with Nim-basis $\BB$.

\noindent
(A) Clearly the empty set
  is in $\BB$, so that Condition~(A) is satisfied.

\noindent
(B) If $F \du B = B'$, with $F$ a face and $B,B'\in\BB$, then $|F| \equiv
0 \bmod k$.  Since $F$ is a face we have that $|F| \leq k-1$.  Hence
we conclude that $|F| = 0$, so $F$ is the empty set.  This proves that
$\dd_{k}(V)$ and $\BB$ satisfy Condition~(B).



\noindent
(C) To check Condition~(C), let $F$ be a face of $\dd_k(V)$ and $S$ a subset
of $V$.  Let $m$ be the unique integer $m$ such that $1 \leq m \leq k$
and $|S-F| \equiv m \bmod k$.  
\begin{itemize}
\item%
If $k - |F| \leq m$ then choose
$K$ to be a subset of $F$ of cardinality $k-m$, and let $G = F$.  Thus
the cardinality of $(S - G) \du K$ is divisible by $k$ and hence $(S
- G) \du K$ belongs to $\BB$.

\item%
If $m < k - |F|$, choose a subset $H$ of $S-F$ of cardinality $m$.
Let $K = \emptyset$ and $G = F \cup H$.  Observe that $G - F \sseq S$
and $|G| = |F| + m \leq k-1$.  Moreover, $|(S - G) \du K| = |S - G| =
| (S-F) - H | = | (S-F) | - m \equiv 0 \bmod k$, so that $(S - G) \du
K \in \BB$.  
\end{itemize}
Hence the three conditions are satisfied, and the
proposition follows from Theorem~\ref{theorem_Alice}.
\end{proof}
%
\noindent
Note that the sets in $\BB$ in Proposition~\ref{proposition_Moore}
are the disjoint unions of circuits of $\dd_k(V)$.
This proposition implies the strategy for classical Nim by
setting $k = 2$.  For $k>2$, the game is still easy to play since the
winning strategy (once deciphered from the proof!) is easy to
remember.

                                
\section{Binary matroids}
\label{section_matroid}

A (finite) {\em matroid} $M$ (without loops) is a simplicial complex
$\cal I$ (whose elements are called {\em independent sets}) such that
for all $U,V\in\cal I$ with $|U|>|V|$, there exists an $x\in U-V$ such
that $(V\du x)\in \cal I$.


If $M$ is a {\em binary matroid} (to be defined in the next paragraph)
then there is a collection $\BB$ of subsets of $V$ such that $\BB$ is
the Nim-basis for $\cal I$.  Hence there is an explicit winning
strategy for binary matroids.  To show this, we will avoid presenting
the general theory of matroids.  Instead we will define directly a
binary matroid.  For background on matroid theory, see the book by
Neil White \cite{White}.  Let~$\Fff_2 = \{0,1\}$ be the finite field
of order two.

\begin{definition}
  A {\em binary matroid} $M$ on a finite set $V$ is a triple $(V,
  \phi, W)$ where $W$ is vector space over the field\/ $\Fff_2$, and
  $\phi$ is a function from the set $V$ to the vector space $W.$ A
  subset $I = \{v_1, \ldots, v_k\}$ of\/ $V$ is called {\em independent}
  if the vectors $\phi(v_1), \ldots, \phi(v_k)$ are linearly
  independent in $W$.  The empty set is considered to be independent.
  A subset of\/ $V$ that is not independent is called\/ {\em
    dependent}.  A minimal dependent set is called a {\em circuit}.
\label{definition_binary_matroid}
\end{definition}

\noindent
{}From linear algebra it follows that the maximal independent sets all
have the same cardinality. This cardinality is called the {\em rank}
of the matroid.




The {\em symmetric difference} $A \triangle B$ of two sets $A$ and $B$
is $A \triangle B = (A-B) \du (B-A)$.  The power set of a set $V$,
denoted $2^V$, forms an abelian group under symmetric difference.
With $W$ and $\phi$ as in Definition~\ref{definition_binary_matroid},
let $\Phi: 2^V \rightarrow W$ be the group homomorphism defined by
$\Phi(A) = \sum_{x \in A} \phi(x)$ and let $\KK$ be the kernel of
$\Phi$.  Hence $\KK$ is given by
%
$$
\KK = \left \{ A \sseq V \:\: : \:\: \sum_{x \in A} \phi(x) =
  {\bf 0} \right\},
$$
%
and $\KK$ is a subgroup of $2^V$, so $\KK$ is closed under symmetric
difference.  We will show that $\KK$ is the Nim-basis for the
Nim-regular complex $\cal I$ of independent sets of $M$.

Observe that the empty set is the only independent set that belongs to
$\KK$.


\begin{lemma}
Given $M$ a binary matroid, let $I$ be an independent set of $M$
and let $Q, Q' \in \KK$.
If $Q' = I \du Q $ then $I$ is the empty set.
\label{lemma_Thursday}
\end{lemma}
\begin{proof}
  Since $Q' = I \du Q$, we have $I = Q \triangle Q'$.  Hence $I$ is a
  member of $\KK$.  But $I$ is also independent, and the only
  independent set $A$ with $\Phi(A)=\zv$ is the empty set, so we
  conclude that $I$ is empty.
\end{proof}
%
The following proposition describes precisely the sets in the
collection $\KK$.
\begin{proposition}
The collection $\KK$ consists of all subsets of $V$ that can be
written as a disjoint union of circuits.
\end{proposition}
\begin{proof}
  Let $C = \{v_1, \ldots, v_k\}$ be a circuit of the binary matroid
  $M$.  Since $C$ is a dependent set, there exist scalars $\alpha_1,
  \ldots, \alpha_k \in \Fff_2$ such that $\sum_{i=1}^{k} \alpha_i
  \cdot \phi(v_i) = {\bf 0}$.  Since $C$ is a {\em minimal}\/
  dependent set, we know that $\alpha_i \neq 0$ for all $i$.  Since
  $\alpha_i \in \Fff_2 - \{0\} = \{1\}$ we have that $\alpha_i = 1$
  for all $i$.  Hence $\sum_{i=1}^{k} \phi(v_i) = {\bf 0}$, and $C \in
  \KK$.




Assume now that $A$ is a disjoint union of circuits, where the
union may be empty.  Then we can write $A = \cup_{i=1}^{k} C_i$.  But,
since the union is disjoint, we have $A = \triangle_{i=1}^{k} C_i$.
Since $\KK$ is closed under symmetric difference, we conclude that $A
\in \KK$.  Hence every disjoint union of circuits is a member of the
collection $\KK$.


Conversely, assume that $A \in \KK$.  By induction on the cardinality
of $A$, we will prove that $A$ is a disjoint union of circuits. If $A$
is empty, this is trivially true. If $A$ has a proper non-empty subset
$B$ such that $\Phi(B) = {\bf 0}$ then, by induction, we know that
both $B$ and $A-B$ are disjoint unions of circuits, and hence also
$A$. Suppose, then, that $A$ does not have a proper non-empty subset
$B$ such that $\Phi(B) = {\bf 0}$.  This implies that every proper
subset $B$ of $A$ is independent.  But since $A$ is dependent, $A$ is
a circuit.  This completes the proof.
\end{proof}
%
On general matroids there is an operation called {\em contraction}.
Here it will be enough to consider contraction on binary matroids.
\begin{definition}
  Let $M = (V, \phi, W)$ be a binary matroid, and let $v \in V$ be an
  element such that $\{v\}$ is independent.  Observe that $\{ {\bf 0},
  \phi(v)\}$ is a one-dimensional subspace of $W$.  The {\em
    contraction} $M/v$ is the binary matroid $(V^{\p}, \phi^{\p},
  W^{\p})$, where $V^{\p} = V - \{v\}$, $W^{\p} = W/\{ {\bf 0},
  \phi(v)\}$, and where, for $x \in V^{\p}$, we have $\phi^{\p}(x) =
  \phi(x) + \{ {\bf 0}, \phi(v)\}$.
\end{definition}
{}From this definition an important fact follows.  First, let $I^{\p}$
be a subset of $V^{\p}$.  Then $I^{\p}$ is an independent set of $M/v$
if and only if $I^{\p} \cup \{v\}$ is an independent set of $M$.
Moreover, let $\KK^{\p}$ be the collection $$
\KK^{\p} = \left \{ A
  \sseq V^{\p} \:\: : \:\: \sum_{x \in A} \phi^{\p}(x) = {\bf
    0}_{W^{\p}} \right\} .  $$
\begin{lemma}
Let $Q^{\p}$ belong to $\KK^{\p}$.  Then either $Q^{\p}$ or $Q^{\p}
\du \{v\}$ belongs to $\KK$.
\label{lemma_unexpected}
\end{lemma}
\begin{proof}
The statement $Q^{\p} \in \KK^{\p}$ is equivalent to $\sum_{x \in
Q^{\p}} \phi(x) \in \{{\bf 0}, \phi(v)\}$, from which the lemma
follows.
\end{proof}
%
\noindent
This lemma may be considered as a generalization (for binary matroids)
of the statement: Suppose $M$ is a binary matroid and that $v$ is a
vertex of $M$, so $M/v$ is also a binary matroid.  Then, if $C^{\p}$
is a circuit of $M/v$ then either $C^{\p}$ or $C^{\p} \cup \{v\}$ is a
circuit of $M$.

The next result shows that $M$, together with $\KK$, satisfies
Condition~(C).
\begin{proposition}
  In a binary matroid $M$, let $I$ be an independent set and let $S$
  be a subset of $V$.  Then there exist independent sets $K$ and $J$,
  with $K\sseq I\sseq J$, such that $J-I\sseq S$ and $(S-J) \du K$ is
  a disjoint union of circuits, that is, $(S - J) \du K \in \KK$.
\label{proposition_July}
\end{proposition}

\begin{proof}
  The proof is by induction on the size of $I$.  First assume that
  $|I|=0$, so $I=\emptyset$.  We claim that any set $S$ may be written
  as a disjoint union of one independent set and a disjoint union of
  circuits.  (The proof of this claim is by induction on the size of
  $S$.  If $S$ is an independent set, then it has the desired form.
  If $S$ is dependent then $S$ contains a minimal dependent set, that
  is, a circuit $C$.  By induction we know that $S-C$ may be written
  as a disjoint union of one independent set and a disjoint union of
  circuits.  But now $S = (S - C) \du C$ has the desired form, and the
  claim is proved.)  So, when $I$ (and thus also $K$) is empty, we can
  decompose $S$ into the disjoint union of one independent set, which
  serves as $J$, and a collection of disjoint circuits.  It is then
  easy to check that the statement of the theorem holds.

For the induction step, consider the case when $I$ is non-empty.
Choose $v \in I$. Then $\{v\}$ is independent.  Let us consider the
matroid $M/v$ on the set $V^{\p} = V - \{v\}$.  Let $I^{\p} = I -
\{v\}$ and $S^{\p} = S - \{v\}$.  Observe that $I^{\p}$ is independent
in the matroid $M/v$.  By induction we can find $J^{\p}$ and $K^{\p}$
such that $J^{\p}$ is independent in $M/v$, $J^{\p} - I^{\p} \sseq
S^{\p}$, $K^{\p} \sseq I^{\p}$, and $(S^{\p} - J^{\p}) \du K^{\p}$
belongs to $\KK^{\p}$.  Let $T^{\prime} = (S^{\p} - J^{\p}) \du
K^{\p}$.  Let $E \sseq \{v\}$ be the set such that $T^{\p} \du E \in
\KK$ (see Lemma~\ref{lemma_unexpected}).  Let $K = K^{\p} \du E$ and
$J = J^{\p}
\du \{v\}$.  Observe that $J$ is an independent set in the matroid
$M$.  Also, $J - I = J^{\p} - I^{\p} \sseq S^{\p} \sseq S$.
Now,
\begin{eqnarray*}
(S - J) \du K & = & (S^{\p} - J^{\p}) \du K^{\p} \du E \\ & = &
T^{\p} \du E \in \KK .
\end{eqnarray*}
That is, $(S - J) \du K$ is a disjoint union of circuits.  This
completes the induction and thus the proof.
\end{proof}

\vspace{-24pt}

It is clear that the empty set belongs to $\KK$, so Condition~(A)
holds.  By Lemma~\ref{lemma_Thursday} and
Proposition~\ref{proposition_July} we know that $M$, together with
$\KK$, satisfies Conditions~(B) and~(C).  Hence, if every singleton is
an independent set of $M$ then $\KK$ is the Nim-basis for the
Nim-regular complex of independent sets of $M$.  Thus by
Theorem~\ref{theorem_Alice} we have:
\begin{theorem}
  Let $M$ be a binary matroid such that the singleton $\{v\}$ is an
  independent set for all $v \in V$.  Then the zero positions on $M$
  are precisely those positions that have binary expansions
$$ 
\sum_{i \geq 0} 2^i \cdot \ev(A_i), 
$$ 
where $A_i \in \KK$.  In other words, the zero positions on $M$ are
those positions where $2^i$ is carried by a disjoint union of circuits
for each $i$.
\qed
\label{theorem_binary_matroid}
\end{theorem}

\vspace{-24pt}
It should be noted that not all Nim-regular matroids are binary.
Consider, for example, the simplicial complex $\Delta_{k}(V)$, which
was defined before Proposition~\ref{proposition_Moore}.  It is a
Nim-regular complex.  Moreover, the faces of $\Delta_{k}(V)$ form the
independent sets of a matroid on $V$.  This is the {\em uniform
  matroid of rank $k-1$} on the set $V$.  But when $k > 2$, this
matroid is not binary.


Observe that classical Nim corresponds to playing simplicial Nim on
the binary matroid $(V,\phi,W)$, where $\phi$ is a non-zero constant
vector.  That is, there is an $\xv \in W$, $\xv \ne \zv$, such that
$\phi(v)= \xv$ for all $v\in V$.  We note that classical Nim also is a
special case of the game considered in
Proposition~\ref{proposition_Moore}.

An important class of binary matroids is the class of graphical
matroids.  Let $G$ be a graph with multiple edges allowed.  Let $V$
denote the set of edges of $G$.  Moreover, let $W$ be the vector space
over $\Fff_{2}$ spanned by the vertices of $G$.  Define $\phi : V
\longrightarrow W$ by $\phi(v) = x + y$, where $v$ is the edge
$\{x,y\}$.  Observe that a subset $I$ of $V$ is independent in the
binary matroid $(V,\phi,W)$ if and only if the graph induced by the
set $I$ is a forest, that is, there is no closed cycle of edges in
$I$.  Thus, given a graph $G$, we may play the following game.  Place
piles of chips on each edge of the graph. A player is allowed to
remove chips from a set of edges if those edges form a forest.  We
leave it to the reader to formulate the winning strategy for this
game.


                                
\section{New games from old}
\label{section_New_games_from_old}


In this section we consider three operations on simplicial complexes
under which games on the complexes behave nicely.

Let $\Delta_1$ and $\Delta_2$ be simplicial complexes on $V_1$ and
$V_2$, respectively, where $V_1$ and $V_2$ are disjoint.  The {\em
  join} $\Delta_1 * \Delta_2$ of the two complexes $\Delta_1$ and
$\Delta_2$ is the simplicial complex on $V_1 \du V_2$, such that
$F$ is a face of the join $\Delta_1 * \Delta_2$ if the restriction
$F \, \vrule_{V_i}$ of $F$ to $V_i$ is a face of $\Delta_i$ for
$i=1,2$.
In other words, a face of $\Delta_1 * \Delta_2$ is any union $F_1\du
F_2$ where $F_1\in\Delta_1$ and $F_2\in\Delta_2$.  In this case,
$\Delta_1$ and $\Delta_2$ are called {\em factors of $\Delta$}.  The
operation of taking the join of two complexes is associative, so
$\dd_1*\dd_2*\cdots *\dd_k$ is unambiguous.

A simplicial complex $\Delta$ is called a {\em cone} if one can write
$\Delta = \Delta_1 * v$ where $v$ is a single vertex.  Let $T$ be the
simplicial complex consisting of two distinct isolated vertices $v_1$
and $v_2$. The {\em suspension of} a simplicial complex $\Delta$ {\em
  by} $T$ is the complex $\Delta * T$.

\begin{theorem}\label{theorem_join}
  Suppose $\Delta$ is the join of $\dd_1$ and $\dd_2$. Then the vector
  $\nv$ is a zero position on $\dd=\Delta_1 * \Delta_2$ if and only if
  the restriction $\nv\vrule_{V_i} = ( n_v )_{v \in V_i}$ of $\nv$ to
  $V_i$ is a zero position on $\Delta_i$ for $i=1,2$.
\end{theorem}

\begin{proof}
  Suppose the restriction of $\nv$ is a zero position for each of the
  factors.  
  Notice that the join of
  one face in each factor is a face of \sd.  
  Thus we can play on each factor separately, since a legal
  move on each factor constitutes a legal move on \sd.
  
  Conversely, suppose $\nv$ is a zero position on \sd.  If
  $\nv\vrule_{V_i}$ is not a zero position on $\dd_i$ for $i=1$ or
  $i=2$ then there is a move on $\dd_i$ to a zero position on $\dd_i$.
  Thus, there is a move $\nv\ra\mv$ such that $\mv$ is a zero position
  when restricted to each factor.  But then $\mv$ is a zero position
  on \sd\ and hence $\nv$ cannot be a zero position on \sd, a
  contradiction, so $\nv\vrule_{V_i}$ is indeed a zero position on
  $\dd_i$ for $i=1,2$.
\end{proof}

\vspace{-24pt}
For the complex consisting of a single vertex, the only zero position
is the one with an empty pile on that vertex.  For a complex
consisting of two disjoint vertices, corresponding to two piles in
classical Nim, the zero positions are those of the form $(n,n)$, that
is, those having the same number of chips on each vertex.  Thus we
have the following two corollaries, where, for a complex on vertex set
$V = W\du \{v\}$, we write $\nv = (\mv,n_v)$ to indicate that $\nv$ is
the position with $n_v$ chips on vertex $v$ and such that
$\mv=\nv|_W$.

\begin{corollary}
  Let $\Delta$ be a cone, that is, $\Delta = \Delta^{\p} * v$ where
  $v$ is a single vertex.  The position $\nv = (\mv,n_{v})$ is a zero
  position on $\Delta$ if and only if $\mv$ is a zero position on
  $\Delta^{\p}$ and $n_{v} = 0$.
\label{corollary_cone}
\end{corollary}

\begin{corollary}
  Let $\dd = \dd'*T$ be the suspension of the complex $\dd'$ by
  $T=\{v_1,v_2\}$.  The position $\nv = (\mv,n_{v_1},n_{v_2})$ is a
  zero position on $\Delta$ if and only if $\mv$ is a zero position on
  $\Delta^{\p}$ and $n_{v_1} = n_{v_2}$. 
\label{corollary_suspension}
\end{corollary}



The $n$--dimensional hyperoctahedron (or cross polytope) is the convex
hull in $n$--dimensional real space of $\{ \pm{\bf e}_i : {\bf e}_i
\mbox{ a standard unit vector}\}$.  Its boundary is the geometric
realization of the simplicial complex defined, for $n\ge 2$, by $\OO_n
= \OO_{n-1}*\OO_1$, with $\OO_1$ being the complex consisting of two
disjoint vertices.  Hence Corollary~\ref{corollary_suspension} implies
the following corollary.

\vspace{-6pt}
\begin{corollary}\label{octahedron}
  The zero positions of $\OO_n$, the boundary complex of the
  hyperoctahedron, are precisely those positions that have the same
  entries for antipodal vertices.
\end{corollary}

\vspace{-6pt}
Corollary~\ref{octahedron} can also be derived from Theorem
\ref{theorem_pointed}, since $\OO_n$ is a pointed circuit complex
whose circuits are the sets containing two antipodal vertices.  In
fact, Corollary~\ref{octahedron} even follows from
Theorem~\ref{theorem_binary_matroid}, for $\OO_n$ is isomorphic to the
complex of independent sets of the graphical matroid whose underlying
graph has the $2n$ vertices $x_1,\ldots,x_n,y_1,\ldots,y_n$ and the
$n$ double edges $(x_i,y_i)$ (and thus a total of $2 n$ edges).
  

As it turns out, the (almost) converse of Theorem~\ref{theorem_join}
also holds.

\vspace{-12pt}
\begin{theorem}%
  Let $\Delta$ be a simplicial complex with vertex set $V$.  Let $V =
  V_1 \du V_2$ be a partition of $V$ and let $\Delta_i$ be the
  subcomplex induced by $V_i$.  Suppose that for every zero position
  $\nv$ on $\Delta$,
  such that $\max(\nv)=1$,
  the restriction of $\nv$ to $V_1$ is a zero
  position on $\Delta_1$.  Then $\Delta$ is the join of $\Delta_1$ and
  $\Delta_2$.
\end{theorem}

\vspace{-12pt}
\begin{proof}
  Let $F$ be a face in $\Delta_1$ and $G$ a face in $\Delta_2$.
  Consider the position where there is a pile of size one on each
  vertex of $F$ and on each vertex of $G$ and a zero on all other
  vertices of $\Delta$.  This is not a zero position on $\Delta$
  because it is not a zero position on $F$ and therefore not a zero
  position on $\Delta_1$.  Thus we can make a move to a zero position.
  By the hypothesis, such a move must necessarily remove all chips
  from $F$, since that is the only way to get a zero position on the
  simplex $F$.  But then we must clearly also remove all chips from
  $G$, for otherwise we would not get a zero position on $\Delta$.
  Since this is the only way to get a zero position on $\Delta$, and
  since we know we can make a move to a zero position, the move must
  be legal.  This implies that $F\du G$ is a face of \sd, so \sd\ is
  the join of $\Delta_1$ and $\Delta_2$.
\end{proof} 

\vspace{-24pt}
We now define two operations, $B_{x}^{y,z}(\Delta)$ and
$P_{x}^{y,z}(\Delta)$, on a simplicial complex $\Delta$.  When there
is no risk of confusion, we write $B_{x}(\Delta)$ and $P_{x}(\Delta)$.
%
\begin{definition}
  Let $\Delta$ be a simplicial complex on $V$.  Assume that $x \in V$
  but $y,z \not\in V$.  Define the simplicial complex
  $B_{x}^{y,z}(\Delta)$ on $(V - \{x\}) \du \{y,z\}$ by the following
  conditions:
\begin{itemize}
\item[i)]%
 If $F \sseq V - \{x\}$ is a face of $\Delta$ then $F$ is a
  face of $B_{x}^{y,z}(\Delta)$.
\item[ii)]%
If $F \sseq V - \{x\}$ and
$F \du \{x\}$ is a face of $\Delta$
then $F\du \{y,z\}$ is a  face of $B_{x}^{y,z}(\Delta)$.
\end{itemize}
\end{definition}
%
Observe that since $B_{x}^{y,z}(\Delta)$ is a simplicial complex, the
sets $F$, $F \du \{y\}$, and $F \du \{z\}$ are all faces of
$B_{x}^{y,z}(\Delta)$ when the hypotheses in {\em ii)} are satisfied.

The next lemma is easy to prove and so it is left to the reader.
\begin{lemma}
Let\/ $\nv$ be a position on $B_{x}^{y,z}(\Delta)$  and define the
position $\pv$ on \sd\ by 
%
$$
   p_v = \left\{ \begin{array}{c l}
               n_y + n_z  & \mbox{ if } v = x \\
               n_v        & \mbox{ if } v \in V - \{x\}.
                   \end{array} \right. 
$$
%
Then the value of $\nv$, $v(\nv)$, 
is equal to $v(\pv)$, the value of $\pv$.
In particular,
$\nv$ is a zero position on $B_{x}^{y,z}(\Delta)$ if and only if\/
$\pv$ is a zero position on $\Delta$.
\label{lemma_reader}
\end{lemma}
\begin{definition}
Let $\Delta$ be a simplicial complex on $V$.
Assume that $x \in V$ but $y,z \not\in V$.
Define the simplicial complex
$P_{x}^{y,z}(\Delta)$ on $(V - \{x\}) \du \{y,z\}$
by
\begin{itemize}
\item[i)] If $F \sseq V - \{x\}$ is a face of $\Delta$ then $F \du
  \{y\}$ and $F \du \{z\}$ are faces of $P_{x}^{y,z}(\Delta)$.

\item[ii)]
If $F \sseq V - \{x\}$ and
$F \du \{x\}$ is a face of $\Delta$
then
$F \du \{y,z\}$
is a face  of $P_{x}^{y,z}(\Delta)$.
\end{itemize}
\end{definition}
%
Note that, under the hypotheses in {\em ii)}, $F$, $F \du \{y\}$, and
$F \du \{z\}$ are all faces of $P_{x}^{y,z}(\Delta)$.
%
\begin{proposition}
  The vector $\nv$ is a zero position on $P_{x}(\Delta)$ if and only
  if both $n_y = n_z$ and\/ $\pv$ is a zero position on $\Delta$,
  where
$$   p_v = \left\{ \begin{array}{c l}
               n_y = n_z  & \mbox{ if } v = x \\
               n_v        & \mbox{ if } v \in V - \{x\}.
                   \end{array} \right. 
$$
\label{proposition_Paris}
\end{proposition}
\begin{proof}
  Let $W$ be the set of positions given in the proposition.  Clearly
  we have ${\bf 0} \in W$.

Assume that $\nv$ and $\mv$ are both in $W$.  Let $\pv$ and $\qv$ be
the zero positions on $\Delta$ corresponding to $\nv$ and $\mv$.
Assume that there is a move from $\nv$ to $\mv$.  If $m_y = n_y$ then
such a move will change the piles in a face $F$ such that $y,z \not\in
F$. But $F$ is also a face of $\Delta$, and hence we could make a move
{}from $\pv$ to $\qv$.  This contradicts that $\pv$ and $\qv$ are both
zero positions of $\Delta$.


If $m_y < n_y$ then a move from $\nv$ to $\mv$ has to be on a face $F$
that contains $y$ and~$z$. By the construction of
$P_{x}^{y,z}(\Delta)$, $G = (F-\{y,z\}) \du \{x\}$ is a face of
$\Delta$. Now we could again make a move from $\pv$ to $\qv$ on the
face $G$, also leading to a contradiction.  Hence there is no move
{}from a position in $W$ to another position in $W$.




Let $\nv$ be a position on $P_{x}(\Delta)$, such that $\nv \not\in W$.
Construct a position $\pv$ on $\Delta$ according to the rule
%
$$
p_v = \left\{ \begin{array}{c l} \min(n_y, n_z) & \mbox{ if } v = x
    \\ n_v & \mbox{ if } v \in V - \{x\}.
\end{array} \right. 
$$
%
If $\pv$ is a zero position on $\Delta$ then
make the move $\nv \rightarrow \mv$, where $m_y = m_z = \min(n_y,
n_z)$ and $m_v = n_v$ for $v \in V-\{x\}$.  Otherwise, there is a move
$\pv \rightarrow \qv$, where $\qv$ is a zero position on $\Delta$.
Assume that this move takes place on the face $F$ of $\Delta$.  Let
$\mv$ be the position in $W$ corresponding to the zero position $\qv$.

If $x \in F$ then we can make the move $\nv \rightarrow \mv$ on the
face $(F - \{x\}) \du \{y,z\}$.  If $x \not\in F$ then we can make the
move $\nv \rightarrow \mv$ on one of the sets $F$, $F \du \{y\}$, and
$F \du \{z\}$.  But these sets are all faces of $P_{x}^{y,z}(\Delta)$.
Hence, we conclude that the positions described in $W$ are indeed all
the zero positions of $P_{x}^{y,z}(\Delta)$.
\end{proof}
%
Let $\Delta$ be a Nim-regular simplicial complex with Nim-basis $\BB$.
Let $\EE$ be the collection of subsets of $(V - \{x\}) \du \{y,z\}$,
defined by:
%
$$
\EE = \{ D \in \BB \:\: : \:\: x \not\in D \} \cup \{ (D - \{x\})
\du \{y,z\} \:\: : \:\: x \in D \in \BB \} .
$$ 
%
Then the complex $P_{x}^{y,z}(\Delta)$ is Nim-regular and $\EE$ is its
Nim-basis.  To see this, apply Proposition~\ref{proposition_Paris} and
Proposition~\ref{proposition_reverse}.


\setlength{\unitlength}{1 mm}
\begin{figure}
\begin{center}
\begin{picture}(170,40)(0,0)
\put(15,15){
           \put(0,10){\line(1,0){15}}
           \put(0,10){\circle*{2}}     \put(-1,5){{\it u}}
           \put(15,10){\circle*{2}}    \put(14,5){{\it x}}
           \put(25,10){\circle*{2}}    \put(25,5){\makebox(0,0){\it w}}
\put(12,-18){{\sd}}

\path(-5,-10)(-5,30)(30,30)(30,-10)(-5,-10)
}



\put(61.5,15){
\shade\path(0,10)(15,0)(15,20)(0,10)

           \put(0,10){\circle*{2}}
           \put(15,0){\circle*{2}}
           \put(15,20){\circle*{2}}
           \put(25,10){\circle*{2}}


           \put(-2,5){{\it u}}
           \put(14,-5){{\it y}}
           \put(14,23){{\it z}}
           \put(25,5){\makebox(0,0){\it w}}
\put(12,-18){\makebox(0,0){$B_{x}^{y,z}(\dd)$}}

\path(-5,-10)(-5,30)(30,30)(30,-10)(-5,-10)
}

\put(109,15){
\shade\path(0,10)(15,0)(15,20)(0,10)
\path(15,0)(25,10)(15,20)

           \put(0,10){\circle*{2}}
           \put(15,0){\circle*{2}}
           \put(15,20){\circle*{2}}
           \put(25,10){\circle*{2}}

           \put(-2,5){{\it u}}
           \put(14,-5){{\it y}}
           \put(14,23){{\it z}}
           \put(25,5){\makebox(0,0){\it w}}
\put(12,-18){\makebox(0,0){$P_{x}^{y,z}(\dd)$}}

\path(-5,-10)(-5,30)(30,30)(30,-10)(-5,-10)
}
\end{picture}
\end{center}
\caption{A  complex $\Delta$ and the two derived complexes
  $B_{x}^{y,z}(\Delta)$
  and~$P_{x}^{y,z}(\Delta)$.\label{figure_trio}}
\end{figure}



Consider the simplicial complex $\Delta$ in Figure~\ref{figure_trio}.
Its zero positions $\nv$ satisfy $n_u + n_x = n_w$.  Hence the zero
positions $\nv$ of $B_{x}^{y,z}(\Delta)$ satisfy $n_u + n_y + n_z =
n_w$ by Lemma~\ref{lemma_reader}.  Moreover,
Proposition~\ref{proposition_Paris} implies that the zero positions
$\nv$ of $P_{x}^{y,z}(\Delta)$ are those positions $\nv$ for which
$n_y = n_z$ and $n_u + n_y = n_w$.




We may iterate the two operations $B_{x}^{y,z}$ and $P_{x}^{y,z}$.
For $Y = \{y_1, \ldots, y_k\}$ define
$B_{x}^{Y}(\Delta)$
and
$P_{x}^{Y}(\Delta)$
by
\begin{eqnarray*}
B_{x}^{Y}(\Delta)
  & = &
       B_{z_{k-1}}^{y_{k-1},y_{k}}(
        \cdots
       B_{z_1}^{y_2,z_2}(
       B_{x}^{y_1,z_1}(\Delta) ) \cdots )  , \\
P_{x}^{Y}(\Delta)
  & = &
       P_{z_{k-1}}^{y_{k-1},y_{k}}(
        \cdots
       P_{z_1}^{y_2,z_2}(
       P_{x}^{y_1,z_1}(\Delta) ) \cdots )  ,
\end{eqnarray*}
where $z_1, \ldots, z_{k-1}$ are dummy variables.
Observe that the order of the elements of $Y$ does not matter, hence
the operations are well-defined.
Another description of these two operations is this:
The simplicial complexes $B_{x}^{Y}(\Delta)$ 
and $P_{x}^{Y}(\Delta)$ 
on the set $(V - \{x\}) \du Y$ fulfill
the following conditions:
\begin{itemize}
\item[i)] If $F \sseq V - \{x\}$ is a face of $\Delta$ then $F$ is a
  face of $B_{x}^{Y}(\Delta)$.

\item[ii)]
If $F \sseq V - \{x\}$ and
$F \du \{x\}$ is a face of $\Delta$
then $F \du Y$ is a  face of $B_{x}^{Y}(\Delta)$.

\item[iii)] If $F \sseq V - \{x\}$ is a face of $\Delta$ 
and $Y^{\prime}$ is a subset of $Y$ of
cardinality less than $|Y|$
then $F \du Y^{\prime}$ is a face of $P_{x}^{Y}(\Delta)$.

\item[iv)]
If $F \sseq V - \{x\}$ and
$F \du \{x\}$ is a face of $\Delta$
then
$F \du Y$
is a face of $P_{x}^{Y}(\Delta)$.
\end{itemize}


As a consequence of Lemma~\ref{lemma_reader} and
Proposition~\ref{proposition_Paris} we have the following two
corollaries.
\begin{corollary}
Let\/ $\nv$ be a position on $B_{x}^{Y}(\Delta)$  and define the
position $\pv$ on \sd\ by 
%
$$
   p_v = \left\{ \begin{array}{c l}
               \sum_{y \in Y} n_y & \mbox{ if } v = x \\
               n_v        & \mbox{ if } v \in V - \{x\}.
                   \end{array} \right. 
$$
%
Then the value of $\nv$, $v(\nv)$, 
is equal to the value of $\pv$, $v(\pv)$.
In particular,
$\nv$ is a zero position on $B_{x}^{Y}(\Delta)$ if and only if\/
$\pv$ is a zero position on $\Delta$.
\end{corollary}
\begin{corollary}
  The vector $\nv$ is a zero position on $P_{x}^{Y}(\Delta)$ if and only
  if both $n_{y_1} = \cdots = n_{y_k}$
  and\/ $\pv$ is a zero position on $\Delta$, where
$$   p_v = \left\{ \begin{array}{c l}
               n_{y_1}    & \mbox{ if } v = x \\
               n_v        & \mbox{ if } v \in V - \{x\}.
                   \end{array} \right. 
$$
\end{corollary}


                                
\section{The length of a zero position}
\label{section_length}

In this section we will introduce a fourth operation on simplicial
complexes and show how this operation preserves zero positions.
In order to proceed we need to define the concept of the length of a
zero position.

\begin{definition}
  Let $\nv$ be a zero position of the simplicial complex $\Delta$.
  The\/ {\em length} $\ell_{\Delta}(\nv)$ of $\nv$ is recursively
  defined by setting $\ell_{\Delta}(\zv) = \zv$ and,
for $\nv \ne \zv$,
%
$$
\ell_{\Delta}(\nv) = 1+\max( \{ \ell_{\Delta}(\mv) \:\: : \:\: \mv \mbox{
  is a zero position of \sd\ and } \mv < \nv \} ).
$$ 
\end{definition}
That is, $\ell_{\Delta}(\nv)$ is equal to the length of a longest chain
${\bf 0} = \mv_{0} < \mv_{1} < \cdots < \mv_{h} = \mv$, where each
$\mv_i$ is a zero position on $\Delta$.  In other words, if {\bf n} is
a zero position then $\ell_\dd({\bf n})$ is the maximum number of moves
it can take the second player to win the game, 
assuming that both players try to make the game as long as possible
and that the second player always moves to a zero position.  We will
write $\ell(\nv)$ when the simplicial complex $\Delta$ is understood.


\begin{lemma}
If $C$ is a circuit of the simplicial complex $\Delta$, then the zero
position $n \cdot \ev(C)$ has length $n$, that is, $\ell_{\Delta}(n \cdot
\ev(C)) = n$.
\end{lemma}

\begin{definition}
Let $\Delta$ be a simplicial complex on $V$.  Assume that $z \not\in
V$.  Define the simplicial complex $C^{z}(\Delta)$ on $V \cup \{z\}$
by the following conditions:
\begin{itemize}
\item[i)]
$V$ is a face of $C^{z}(\Delta)$.
\item[ii)]
If $F$ is a face of $\Delta$ then $F \cup \{z\}$ is a face of
$C^{z}(\Delta)$.
\end{itemize}
\end{definition}

\begin{proposition}
  Let \sd\ be a simplicial complex on vertex set $V$.  The vector
  $\nv$ is a zero position on $C^{z}(\Delta)$ if and only if
  $\nv \, \vrule_{V}$ is a zero position on $\Delta$ and $n_z =
  \ell_{\Delta}(\nv \, \vrule_{V})$.
\label{proposition_Christine}
\end{proposition}
\begin{proof}
  For $\nv$ a position on $C^{z}(\Delta)$ we will, as in
  Corollary~\ref{corollary_cone},
  write $\nv = (\pv, r)$ if $\nv \, \vrule_{V} = \pv$
  and
  $n_{z} = r$.  Also let $W$ be the set of all positions described in
  the proposition.  Clearly ${\bf 0} \in W$, since $\ell({\bf 0}) = 0$.
  
  Assume that there is a move $\nv\ra\mv$, where both $\nv$ and $\mv$
  belong to $W$.  Let $\nv = (\pv,r)$ and $\mv = (\qv,s)$.  Since
  $\pv$ and $\qv$ are zero positions on $\Delta$, we know that there
  is no move from $\pv$ to $\qv$.  Hence the only way a move $\nv
  \rightarrow \mv$ can take place is by making a move on some subset
  of $V$ that is not a face of $\Delta$.  But this implies that $r =
  s$.  Since $\qv < \pv$, we have that $\ell(\qv) < \ell(\pv)$.  This
  contradicts $\ell(\pv) = r = s = \ell(\qv)$.


Given a position $\nv \not\in W$ we would like to find a position $\mv
\in W$ such that there is a move $\nv \rightarrow \mv$.  Let $\nv =
(\pv,r)$.  

First assume that $\pv$ is a zero position on $\Delta$. Then we either
have $\ell(\pv) < r$ or $\ell(\pv) > r$.  If $\ell(\pv) < r$, then make
the move $(\pv,
r) \rightarrow (\pv,\ell(\pv))$.  If $\ell(\pv) > r$ then there exists a
zero position $\qv$ of $\Delta$ such that $\qv < \pv$ and $\ell(\qv) =
r$.  In this case
make the move $(\pv, r) \rightarrow (\qv,r)$.


Now we consider the case when $\pv$ is not a zero position of
$\Delta$.  Let 
%
$$ \ell = \max(\{ \ell(\qv) \:\: : \:\: \qv \mbox{ is a zero
position of $\Delta$ and } \qv < \pv \} ) .  
$$
%
Observe that $\ell$ is well-defined since ${\bf 0}$ is such a zero
position.  If $r \leq \ell$, we can find a zero position $\qv$ such that
$\qv < \pv$ and $\ell(\qv) = r$.  In that case, make the move $(\pv,r)
\rightarrow (\qv,r)$.
Left to consider is the case when $r > \ell$.
In the game
on $\Delta$ we can make a move $\pv \rightarrow \qv$, where $\qv$ is a
zero position on $\Delta$. Since $\qv < \pv$ we know that $\ell(\qv) \leq
\ell < r$.  Hence we may now make the move $(\pv,r) \rightarrow
(\qv,\ell(\qv))$.  This completes the proof.
\end{proof}
%
It is easy to observe that $C^{z_1}(C^{z_2}(\Delta)) =
P_{x}^{z_1,z_2}(C^{x}(\Delta))$.  From this it follows that
$C^{z_1}(C^{z_2}(\Delta)) = C^{z_2}(C^{z_1}(\Delta))$.  Moreover, this
observation can be used to prove the following proposition.
\begin{proposition}
  If $\nv$ is a zero position on $\Delta$ then
  $\ell_{C^{x}(\Delta)}((\nv, \ell_{\Delta}(\nv))) =
  \ell_{\Delta}(\nv)$.  In other words, the length of a zero position
  on $C^x(\dd)$ equals the length of the corresponding zero position
  on \sd.
\end{proposition}
\begin{proof}
  Let $h = \ell_{C^{x}(\Delta)}((n, \ell_{\Delta}(n))).$ Then, by
  Proposition \ref{proposition_Christine}, we know that the position $(n,
  \ell_{\Delta}(n), h)$ is a zero position on $C^{z}( C^{x}( \Delta )
  ).$ But this last complex is identical to $P^{x,z}_{y}( C^{y}(
  \Delta ))$. By Proposition \ref{proposition_Paris} we know that a zero
  position on $P^{x,z}_{y}( C^{y}( \Delta ) )$ must have piles of
  equal sizes on vertices $x$ and $z$. Hence
$$
        \ell_{\Delta}(n) = h,
$$
which is what we wanted to prove.
\end{proof}

Let $\Delta$ be a pointed circuit complex, and denote the set of
circuits of \sd\ by ${\cal C}$.  Then the set of circuits of
$C^{z}(\Delta)$ is given by
$$   
{\cal C}^{\prime}   =
     \{ C \cup \{z\} \:\: : \:\: C \in {\cal C} \}  . 
$$
If the vertex $v$ is a point of the circuit $C$ in $\Delta$, then $v$
is also a point of the circuit $C \cup \{z\}$ in $C^{z}(\Delta)$.
Hence $C^{z}(\Delta)$ is also a pointed circuit complex.  Observe that
the vertex $z$ belongs to every circuit of $C^{z}(\Delta)$.  Now by
Theorem~\ref{theorem_pointed} and
Proposition~\ref{proposition_Christine} we have the following result.

\begin{proposition}
Let $\Delta$ be a pointed circuit complex.  Then the length of a zero
position $\disp\sum_{C \in {\cal C}} a_{C} \cdot \ev(C)$ on $\Delta$
is
given by
$$    \ell_{\Delta}\left(
                  \sum_{C \in {\cal C}} a_{C} \cdot \ev(C)
                \right)
    =
                  \sum_{C \in {\cal C}} a_{C}  .  $$
\end{proposition}

For certain classes of Nim-regular complexes we are able to compute
the length of a zero position.

\begin{proposition}
  Let $\Delta$ be a Nim-regular complex on $V$ with Nim-basis $\BB$.
  Suppose there exist real scalars $\alpha_{v}$, where $v \in V$, such
  that
$$
\ell_{\Delta}(\ev(D)) = \sum_{v \in D} \alpha_{v}, $$
for all $D$
in $\BB$.  Then the length of a zero position $\nv$ is given by
$$ \ell_{\Delta}(\nv) = \sum_{v \in V} \alpha_{v} \cdot n_{v} .  $$
\end{proposition}
\begin{proof}
Define $g(\nv)$ by
$$   g(\nv) = \sum_{v \in V} \alpha_{v} \cdot n_{v} .  $$
It is easy to see that $g({\bf 0}) = 0$ and that
$g(\nv)$ is a non-negative integer.
For
$\mv < \nv$
we have that
$g(\mv) < g(\nv)$.
Thus we have that $\mv < \nv$ implies $g(\mv) + 1 \leq g(\nv)$.
Hence if we have a chain
${\bf 0} = \mv_{0} < \mv_{1} < \cdots < \mv_{\ell} = \nv$
then
$\ell \leq g(\nv)$.
Hence maximizing over all chains, we have that
$\ell_{\Delta}(\nv) \leq g(\nv)$.

To prove the other direction of the inequality, we will show that
there is a chain of length $g(\nv)$.  Let $\nv$ be the zero position
$\sum_{i \geq 0} 2^i \cdot \ev(A_i)$.  Observe that
\begin{eqnarray*}
  g(\nv) 
    & = &
  \sum_{v \in V}    n_v \cdot \alpha_{v}  \\
    & = &
  \sum_{v \in V}  
    \left(
      \sum_{i \geq 0} 2^i \cdot \chi(v \in A_i)
    \right) 
      \cdot \alpha_{v} \\
    & = &
  \sum_{i \geq 0} 2^i \cdot \sum_{v \in A_i} \alpha_{v} \\
    & = &
  \sum_{i \geq 0} 2^i \cdot \ell_{\Delta}(\ev(A_i))  .
\end{eqnarray*}
Between the two positions
%
$$
\sum_{i \geq j+1} 2^i \cdot \ev(A_i)
     \:\:\:\: \mbox{ and } \:\:\:\:
   \sum_{i \geq j} 2^i \cdot \ev(A_i)
$$
%
we can construct a chain of length $2^j \cdot
\ell_{\Delta}(\ev(A_j))$.  Now, concatenating these chains for $j \geq
0$, we obtain a chain of the desired length from ${\bf 0}$ to $\nv$.
Hence $g(\nv) \leq \ell_{\Delta}(\nv)$.  Thus we have that $g(\nv) =
\ell_{\Delta}(\nv)$ and the proof is complete.
\end{proof}
%
This proposition specializes nicely to the complex $\dd_{k}(V)$, that
is, the complex where each $k$-subset of $V$ is a circuit (see
Proposition~\ref{proposition_Moore}).  Let $\nv$ be a zero position on
$\dd_{k}(V)$.  Then we have that
$$
\ell_{\dd_{k}(V)}(\nv) = \frac{1}{k} \cdot \sum_{v \in V} n_v .
$$


                                
\section{Paths and cycles}
\label{section_path}

We now introduce two families of simplicial complexes, namely the path
complex $P_{n,k}$ and the cycle complex $C_{n,k}$, and give partial
results on their respective zero positions.  Since both correspond to
natural generalizations of classical Nim, it would be
interesting to find a complete strategy for them.


The {\em path complex} $P_{n,k}$ is defined for $n \geq 0$ and $k \geq
1$.  The vertex set is $\{1, \ldots, n+k-1\}$, and it has $n$ facets,
namely $\{i,i+1, \ldots, i+k-1\}$ for $i=1, \ldots, n$.  Observe that
$P_{n,2}$ is a path of length $n$ in the graph theoretic sense (see
Figure~\ref{figure_path}).  We may view the game on $P_{n,2}$ as a
generalization of the game of Kayles
(see~\cite[chapter~4, page~81]{BCG}
and~\cite[page~127]{Conway}).  Playing on $P_{n,k}$ is
equivalent to playing on piles $p_1,p_2,\ldots,p_{n+k-1}$ with a move
allowed to affect any $k$ consecutive piles.


\setlength{\unitlength}{1 mm}

\begin{figure}
\begin{center}
\begin{picture}(170,25)  
\put(5,5){

\put(5,10){
\multiput(0,0)(5,0){3}{\pt}
\multiput(25,0)(5,0){3}{\pt}
\path(0,0)(12.5,0)
\put(18,0){\makebox(0,0){\ldots}}
\put(18,-12){\makebox(0,0){$P_{n,2}$}}
\path(22.5,0)(35,0)
}


\put(-5,0){
\put(73,5){
\shade\path(0,0)(20,0)(25,10)(5,10)(0,)

\put(0,0){\pt}
\put(10,0){\pt}
\put(20,0){\pt}
\put(5,10){\pt}
\put(15,10){\pt}
\put(25,10){\pt}
\path(5,10)(10,0)(15,10)(20,0)
}

\put(107.5,10){\makebox(0,0){\ldots}}
\put(107.5,-2){\makebox(0,0){$P_{n,3}$}}

\put(112,5){
\shade\path(0,0)(20,0)(25,10)(5,10)(0,)

\put(0,0){\pt}
\put(10,0){\pt}
\put(20,0){\pt}
\put(5,10){\pt}
\put(15,10){\pt}
\put(25,10){\pt}
\path(5,10)(10,0)(15,10)(20,0)
}
}

}
\end{picture}
\caption{The path complexes $P_{n,2}$ and $P_{n,3}$\label{figure_path}.}
\end{center}
\end{figure}

When $n \leq k$ the path complex $P_{n,k}$ is a cone over the complex
$P_{n,k-1}$.  Hence, analyzing the complex $P_{n,k}$ when $n \leq k$
reduces to analyzing the complex $P_{n,n-1}$.  Consider a position
$\mv$ on $P_{n,n-1}$, such that 
%
$$
m_{b} = \cdots = m_{b+n-3} = 0 \;\;\;\; \mbox{ and }\;\;\;\;
\sum_{i=1}^{b-1} m_i =
\sum_{i=b+n-2}^{2n-2} m_i,
$$
%
where $2 \leq b \leq n$. This is a zero position on $P_{n,n-1}$.
Moreover, the converse also holds true; all zero positions of
$P_{n,n-1}$ are of this form.  What remains is to find the zero
positions of $P_{n,k}$ when $n \geq k+2$.

The {\em cycle complex} $C_{n,k}$ has vertex set $V =
\{1,2,\ldots,n\}$ and it has the $n$ facets $\{i,i+1,\ldots,i+k-1\}$,
where $i=1,\ldots,n$, and the addition is modulo $n$.  Hence each
vertex lies in $k$ facets, and each facet contains $k$ vertices.  When
$k=2$ we have a cycle of length $n$ in the graph theoretic sense. When
$k \geq 3$ and both $n$ and $k$ are odd we have a $(k-1)$-dimensional
M\"obius strip, consisting of $n$ simplices.  Playing on $C_{n,k}$ is
equivalent to playing on the cyclic graph with $n$ vertices, with a
move allowed to affect the piles on any $k$ consecutive vertices.
Observe, however, that reducing a pile to zero does not prevent
subsequent moves from affecting piles on both sides of such an empty
pile, provided that $k>2$.
Of course, the same is true for the path complex.

When $n$ is even and $n \geq 2 k$, the map 
%
$\phi(i) = i + n/2 (\bmod\; n)$
%
is a simplicial bijection which satisfies the conditions of
Lemma~\ref{involution}.  Hence, if $\nv$ is a position with $n_i=n_j$
whenever $i\equiv j$ (mod $n/2$) then $\nv$ is a zero position on
$C_{n,k}$. In particular, ${\bf 1} = (1, \ldots, 1)$ is a zero
position on $C_{n,k}$.  Moreover, when $n$ is odd it is also easy to
see that ${\bf 1}$ is a zero position on $C_{n,2}$.  Namely, any move
from ${\bf 1}$ can be countered by a move that leaves two disjoint,
isomorphic (path) complexes with a 1 on each vertex.


\begin{conjecture}\label{conjecture_cycle}
  Suppose\/ $\nv$ is a zero position on the cycle complex $C_{n,k}$.
  If\/ ${\bf 1} = (1,1, \ldots, 1)$ is a zero position on $C_{n,k}$,
  then $\nv + {\bf 1}$ is also a zero position on $C_{n,k}$.
\end{conjecture}

\begin{definition}%
Let \sd\ be a simplicial complex on vertex set $V$ and let $\nv\in
\Nnn^V$ be a position on \sd.  Then $\nv$ is a {\em genuine} position
on \sd\ if $n_v>0$ for each $v\in V$.
\end{definition} 


The converse of Conjecture~\ref{conjecture_cycle} does not hold.  For
instance, $(3,3,2,3,2,2,1)$ is a zero position on the cycle complex
$C_{7,2}$, but $(2,2,1,2,1,1,0)$ is not.  However, one may still ask
whether the converse holds for genuine zero positions.  In other
words, if $\nv$ is a zero position and $\mv$ is a genuine zero
position with $\nv=\mv+\bf 1$, is then $\mv$ a zero position?

It is easy to check the conjecture when $(n,k)$ equals
$(3,2)$ and $(4,2)$, respectively.
It also holds in the case when $(n,k)$ equals $(5,2)$,
as we shall soon see.

Given a vector ${\bf v}=(v_1,\ldots,v_m)$, the {\em symmetries of\/
  $\vv$} is the set of vectors
\begin{eqnarray*}
  &      &
\{(v_k, v_{k+1}, \ldots, v_m, v_1, \ldots, v_{k-1})
        \:\: : \:\: 1 \le k \le m\}   \\
  & \cup &
\{(v_{k-1}, \ldots, v_1, v_m, \ldots, v_{k})
        \:\: : \:\: 1 \le k \le m\} .
\end{eqnarray*}
We note that the zero positions of the path complex $P_{3,2}$ are
given by
$$
\{ (n_1,0,n_3,n_4) \:\: : \:\: n_1 = n_3 + n_4 \}\;\; \cup\;\; \{
(n_1,n_2,0,n_4) \:\: : \:\: n_1 + n_2 = n_4 \}.
$$
Namely, these are clearly zero positions, and it is easy to check
that any other position can be reduced to one of these.  Hence we know
that the zero positions of the cycle complex $C_{5,2}$ containing at
least one zero are given by the symmetries of
%
$$
     (b+c, 0, b, c, 0).
$$
%

\begin{proposition}
  The zero positions of the cycle complex $C_{5,2}$ are given by the
  symmetries of 
%
$$
(a+b+c, a, a+b, a+c, a),
$$
%
where $a$, $b$, and $c$ are any non-negative integers.
\end{proposition}
\begin{proof}
Let $W$ be the set of positions described.
Clearly ${\bf 0} \in W$.

Let $\nv = (n_1,n_2,n_3,n_4,n_5)$ be a position on $C_{5,2}$ and let
$a = \min(\nv)$, and consider the position $\nv - a \cdot
{\bf 1}$.  This position has at least one zero.  Hence either $\nv - a
\cdot {\bf 1}$ is of the form $(b+c, 0, b, c, 0)$, or we can make a
move to such a position.  We conclude that either $\nv$ is of the form
$(a+b+c, a, a+b, a+c, a)$, or we can make a move to such a position.


Since $\zv\in W$, it remains only to show that
we cannot make a move from
a position in $W$ to another position in $W$.  Observe that the
positions $\nv$ in $W$ have the property that one can always find two
non-adjacent entries of $\nv$ which are equal to $\min(\nv)$.


Given two positions $\nv, \mv \in W$, assume that there is a move $\nv
\rightarrow \mv$.  If $\min(\mv) = \min(\nv) = a$, we obtain a
contradiction since it implies that the move $\nv - a \cdot {\bf 1}
\rightarrow \mv - a \cdot {\bf 1}$ is possible.  Hence we have
$\min(\mv) < \min(\nv)$.  But since we made a move to the position
$\mv$, we must have removed chips from
the piles which had the least number of
chips in them.  Thus, $\mv$ either has only one pile with the minimum
number of chips or else two adjacent piles with the minimum number.
But this contradicts the property in the previous paragraph about
positions in $W$.
\end{proof}

\vspace{-30pt}
%
\begin{proposition}
  The zero positions of $C_{5,3}$ are given by the symmetries of
%
$$
(0,a+b,a,b,a+b),
$$
%
where $a$ and $b$ are any non-negative integers.
\end{proposition}
\vspace{-6pt}
\begin{proof}
  For the complex with facets $\{1,2,3\}$, $\{2,3,4\}$, and $\{1,4\}$
  it follows from Theorem~\ref{theorem_pointed} that the zero
  positions are given by $(a+b, a, b, a+b)$, where $a$ and $b$ are
  non-negative integers.
  
  Let the set of positions in the statement of the proposition be
  denoted by $W$.  By the previous paragraph, it is easy to see that
  the positions in $W$ are zero positions of the cycle complex
  $C_{5,3}$.  It remains to show that they are the only zero positions
  of $C_{5,3}$.  To do so, it is enough to show that for any position
  not in $W$ there is a move to a position in $W$.

  
  Let $B = \max(\nv)$ and $a = \min(\nv)$.
  Either there are adjacent vertices with $B$ chips and $a$ chips,
  respectively, or else there are two such vertices
  separated from each other by just one vertex.
  
  Let $\nv$ be a position not in $W$.  Assume that there are two
  adjacent vertices with piles of sizes $B$ and $a$, respectively.
  Without loss of generality we may assume that $\nv = (a, B, x, y,
  z)$.
\begin{itemize}
\item If $y-z \geq a$,
then $\nv \rightarrow (a, a+z, 0, a+z, z)\in W$ is a legal move.

\item If $a \geq y-z \geq 0$,
then $\nv \rightarrow (y-z, y, 0, y, z)\in W$ is a legal move.

\item If $0 \geq y-z \geq -x$,
then $\nv \rightarrow (0, z, z-y, y, z)\in W$ is a legal move.

\item If $-x \geq y-z$,
then $\nv \rightarrow (0, x+y, x, y, x+y)\in W$ is a legal move.
\end{itemize}
This covers all possibilities and thus shows that there is always a
move $\nv\ra \mv\in W.$

Assume, then, that there are piles with $B$ and $a$ chips,
respectively, that are not adjacent.  Without loss of generality we
can assume that $\nv = (a, x, B, y, z)$.  Then one of the following
gives a legal move to a position in $W$.  
\begin{itemize}
\item If $x \geq z-a$,
then $\nv \rightarrow (a, z-a, z, 0, z)$.

\item If $z \geq a+x \geq 0$,
then $\nv \rightarrow (a, x, a+x, 0, a+x)$.
\end{itemize}
This  completes the proof.
\end{proof}
%
                                
\section{Concluding remarks}
\label{section_concluding}

It seems hard to find any general theorems about the winning strategy
in simplicial Nim.  However, there are many questions whose answers it
would be interesting to find and we list some of these here.


\begin{question}
Assume that\/ $\nv$ is a zero position on a complex $\Delta$.  Is
the position $2 \cdot \nv$ also a zero position on $\Delta$?  Is the
converse true?
\end{question}


\begin{question}
  Assume that ${\bf 1} = (1,\ldots,1)$ is a zero position on a complex
  $\Delta$.  Is then the position $n \cdot {\bf 1} = (n,\ldots,n)$
  also a zero position of $\Delta$?
\end{question}

Both of these questions have affirmative answers for all the complexes
considered in Sections~\ref{section_circuit} and~\ref{section_Binary}.

Recall that the set of the zero positions of a pointed circuit complex
$\Delta$ is closed under vector addition. That is, if $\nv$ and $\mv$
are both zero positions then so are $\nv + \mv$. This property
suggests the following question.
\begin{question}
  Is it possible to classify all complexes whose set of zero positions
  is closed under addition?
\end{question}
For instance, consider the complex $\Delta$ on vertex set
$\{a,b,c,d\}$ with facets $\{a,b\}$ and $\{c,d\}$.  This complex is
not a pointed circuit complex, but its zero positions are closed under
addition.

A harder question is what role does the topology of
a complex \sd\ play in
a winning strategy on \sd.  One may observe that the reduced homology
groups of the complexes $\Delta$, $B_{x}(\Delta)$, $P_{x}(\Delta)$,
and $C^{z}(\Delta)$ are related by
$$  \widetilde{H}_{i}(\Delta) 
      \simeq
    \widetilde{H}_{i}(B_{x}(\Delta))
      \simeq
    \widetilde{H}_{i+1}(P_{x}(\Delta))
      \simeq
    \widetilde{H}_{i+1}(C^{z}(\Delta)) .  $$

\begin{question}
  Suppose \sd\ has a genuine zero position. Does \sd\ have a genuine
  zero position $\nv$ with $\min(\nv)=1$?  Also, if \sd\ is a
  connected complex with $v$ vertices, is $\min_{\nv}\{\max(\nv)\}$
  bounded by some function of $v$ for all zero positions $\nv$?
\end{question}


Perhaps the most intriguing question we have not been able to answer
is this: 
\begin{question}
  For each Nim-regular complex \sd\ mentioned in this paper, the
  Nim-basis of \sd\ consists of all sets that can be written as
  disjoint unions of circuits of \sd.  We showed this to be the case
  for binary matroids, but does this property hold in general?
\end{question}

The value of a game played on a non-connected simplicial complex is
the {\em Nim-sum} (see~\cite[page~61]{BCG}) of the values on the
connected components.  In particular, a position is a zero position if
and only if the Nim-sum of these values is zero.  However, it seems
quite hard to compute the value of games on all but the simplest
complexes.  In~\cite{Jenkyns_Mayberry}, Jenkyns and Mayberry give a
formula for the value of Moore's Nim$_k$ which is equivalent to
playing on $\dd_k(V)$ when the set $V$ has cardinality $k+1$ (see
Proposition~\ref{proposition_Moore}).  That is, this amounts to
playing on the boundary complex of a $k$-dimensional simplex.  Thus we
can compute the Nim-value of any game on a complex consisting of the
disjoint union of such boundaries and of simplices, since the value of
a game on a simplex is simply the total number of chips on its
vertices.



Another generalization of Nim is Wythoff's game,
see~\cite[page~76]{BCG}.  The referee of the present paper suggested
the following generalization of Wythoff's game: On a simplicial
complex $\Delta$, place a pile of chips on each vertex of \sd.  Now,
when making a move you are allowed to remove chips from any non-empty
face $F$ of $\Delta$, but you have to remove the same number of chips
from each vertex of $F$.


There are $14$ connected non-isomorphic simplicial complexes on $4$
vertices. In this paper, we have indeed described the zero positions
for all of these but one. (We invite the reader to check this!)  The
only complex that we have not touched upon is shown in
Figure~\ref{figure_mystery}. The set $W$ of its zero positions is
given by:
\begin{eqnarray*}
W  & = &
    \{ (n_x, n_y, 0, n_w) \:\: : \:\: n_x + n_y = n_w \}   \\
   & \cup &
      \{ (n_x, n_y, n_z, n_w) \:\: : \:\:
              n_x = n_y = n_z + n_w,
              n_z \geq 1 \}     .
\end{eqnarray*}
It is interesting to note that the zero positions of this complex are
of two different ``types''.  This fact hints that in general
simplicial Nim it will be hard to describe the set of zero positions.

\begin{figure}
\begin{center}
\setlength{\unitlength}{1 mm}
\begin{picture}(35,20)(0,0)


           \put(0,0){\line(0,1){20}} 
           \put(0,0){\line(3,2){15}} 
           \put(0,20){\line(3,-2){15}} 
           \put(15,10){\line(1,0){20}} 



           \put(0,0){\circle*{2}}
           \put(0,20){\circle*{2}}
           \put(15,10){\circle*{2}}
           \put(35,10){\circle*{2}}

           \put(0,0){\circle*{2}}
           \put(0,20){\circle*{2}}
           \put(15,10){\circle*{2}}
           \put(35,10){\circle*{2}}

           \put(-2,-5){{\it x}}
           \put(-2,25){{\it y}}
           \put(14,5){{\it z}}
           \put(33,5){{\it w}}


\end{picture}
\end{center}
\caption{A simplicial complex with two different types of zero positions.}
\label{figure_mystery}
\end{figure}


\bigskip

\centerline{\sc Acknowledgement} 
We would like to thank Margaret Readdy and the anonymous referee for
carefully reading the manuscript and suggesting numerous improvements
in the presentation, as well as correcting a few mistakes.

\newcommand{\journal}[6]{{\sc #1,} #2, {\it #3} {\bf #4} (#5), #6.}
\newcommand{\book}[4]{{\sc #1,} ``#2,'' #3, #4.}
\newcommand{\thesis}[4]{{\sc #1,} ``#2,'' Doctoral Dissertation, #3, #4.}
\newcommand{\springer}[4]{{\sc #1,} ``#2,'' Lecture Notes in Math.,
                          Vol.\ #3, Springer-Verlag, Berlin, #4.}
\newcommand{\preprint}[3]{{\sc #1,} #2, preprint #3.}
\newcommand{\appear}[3]{{\sc #1,} #2, to appear in {\it #3}.}
\newcommand{\JCTA}{J.\ Combin.\ Theory Ser.\ A}


\begin{thebibliography}{99}

\bibitem{BCG}
\book{E.\ R.\ Berlekamp, J.\ H.\ Conway, and R.\ K.\ Guy}
     {Winning Ways}
     {Academic Press, London}
     {1982}

\bibitem{Bouton}
\journal{C.\ L.\ Bouton}
        {Nim, a Game with a Complete Mathematical Theory}
        {Ann.\ of Math.\ (2)}
        {3}{1901-1902}{35-39}

\bibitem{Conway}
\book{J.\ H.\ Conway}
     {On Numbers and Games}
     {Academic Press, London}
     {1976}

\bibitem{Grundy}
\journal{P.\ M.\ Grundy}
        {Mathematics and Games}
        {Eureka}
        {2}{1939}{6-8}

\bibitem{Jenkyns_Mayberry}
\journal{T.\ A.\ Jenkyns and J.\ P.\ Mayberry}
        {The Skeleton of an Impartial Game
         and the  Nim-Function of Moore's
         ${\hbox{Nim}}_k$}
        {Internat.\ J.\ Game Theory}
        {9}{1980}{51-63}

\bibitem{Moore}
\journal{E.\ H.\ Moore}
        {A Generalization of the Game Called Nim}
        {Ann.\ of Math.\ (2)}
        {11}{1909-1910}{93-94}

\bibitem{Munkres}
\book{J.\ R.\ Munkres}
     {Elements of Algebraic Topology}
     {Addison-Wesley Publishing Company, Inc.}
     {1984}

\bibitem{Schuh}
\book{F.\ Schuh}
     {Master Book of Mathematical Recreations}
     {Dover Publications, Inc., New York}
     {1968}

\bibitem{Schwartz}
\journal{B.\ L.\ Schwartz}
        {Some Extensions of Nim}
        {Math.\ Mag.}
        {44}{1971}{252-257}
 
\bibitem{Sprague}
\journal{R.\ P.\ Sprague}
        {\"Uber mathematische Kampfspiele}
        {T\^ohoku Math.\ J. (2)} 
        {41}{1935-36}{438-444}

\bibitem{White}
\book{N.\ White}
     {Theory of Matroids}
     {Cambridge University Press}
     {1986}

\end{thebibliography}


\end{document}




