duaLab Contribute

Strategy

Project: Games as recursive coalgebras

Contents

In a two-player game, a strategy tells Left how to reply when Right moves. To use a strategy as an arrow from one game to another, Joyal plays the two games side by side and reverses the roles of Left and Right in the source game. Here a strategy carries a state that records its current position and determines its next reply.

1. The game on two boards

In a partisan game $A$, let $L_A(a)$ and $R_A(a)$ be the Left and Right options at position $a$. A game morphism maps each option set onto the corresponding set.

Definition 1.1 (Game for a strategy)

Let $X,Y$ be partisan games and $-X$ the dual game of $X$. A strategy from $X$ to $Y$ is played in the Conway sum $G=(-X)+Y$. A position $(x,y)$ records the source board first. Left and Right exchange roles on that board.

2. States and replies

A position records where the two boards are. A strategy state also determines which reply to give. Several states can record the same position, and the strategy only needs to give replies from the positions its states record.

Definition 2.1 (Strategy)

Let $X,Y$ be partisan games and $G$ their game for a strategy. A strategy from $X$ to $Y$ consists of a set $S$ of states, a map $p_S:S\to X\times Y$ recording each state's position, and a response state $\rho_S(s,q)\in S$ for every state $s\in S$ and Right option $q\in R_G(p_S(s))$. The response is legal:

$$p_S(\rho_S(s,q))\in L_G(q).$$

Example 2.2 (One round of copycat)

Let $X=Y$ be the game with positions $r,t$, a single Right move from $r$ to $t$, and no Left moves. From $(r,r)$, Right can move on the $Y$-board. Left can then make the very same move on the $X$-board because the players' roles are reversed there.

(r,r) \arrow[r, "\text{Right on }Y"] & (r,t) \arrow[r, "\text{Left on }X"] & (t,t)

Remark 2.3 (Starting state)

Choose a state to start play. Right moves from the associated position, Left replies using the response rule, and play continues from the response state. Left always has the required reply. Finiteness of play means that eventually Right has no move.

3. Comparing strategies

The square in Double category of games compares two strategies along maps of their boards. Applying the board maps after a response should agree with applying them before the response.

Definition 3.1 (Simulation)

Let $S$ be a strategy from $X$ to $Y$, and $T$ one from $X'$ to $Y'$. For game morphisms $f:X\to X'$ and $g:Y\to Y'$, let $F=f\times g$ be the map on board positions. A simulation over $(f,g)$ is a map $\varphi:S\to T$ satisfying

$$\begin{aligned} p_T\circ\varphi&=F\circ p_S,\\ \varphi(\rho_S(s,q))&=\rho_T(\varphi(s),F(q)). \end{aligned}$$

for every state $s$ and every legal Right move to $q$ from $p_S(s)$.

4. Composing strategies

To compose a strategy from $X$ to $Y$ with a strategy from $Y$ to $Z$, start both at the same position of $Y$. The shared board $Y$ is internal to the composition. The rules reverse the players on the source board, so a Left reply on the shared board is a Right move for the other strategy.

Definition 4.1 (States of a composite)

Let $S$ be a strategy from $X$ to $Y$ and $T$ one from $Y$ to $Z$. If $p_S(s)=(x,y)$ and $p_T(t)=(y',z)$, then $(s,t)$ is a state of the composite exactly when $y=y'$. Its external position is $(x,z)$.

Definition 4.2 (Response of a composite)

A Right move in $X$ starts with $S$, and one in $Z$ starts with $T$. Apply the active strategy's response rule and replace its state by its response state. If the reply is in $Y$, use that move as the other strategy's Right move and repeat. If the reply is in $X$ or $Z$, the current pair of states is the composite's response state.

Remark 4.3 (Termination of interaction)

Every move passed between the strategies changes the shared position to an option in $Y$. They cannot continue indefinitely. Until the final reply, the external boards remain as they were after Right's opening move. The final reply is therefore legal in the external game. When the interaction stops, the two states again record the same position of $Y$: either the shared position never changed, or the receiving strategy has already taken the last shared move.

Definition 4.4 (Copycat)

The copycat strategy from $X$ to $X$ has the positions of $X$ as states and records the position $(x,x)$ at state $x$. If Right changes one board from $x$ to $q$, Left makes the same move on the other board and the strategy moves to state $q$.

5. Examples

Impartial games and game morphisms give two special cases of the response rule.

Example 5.1 (Impartial games)

An impartial game gives a partisan game with the same options for Left and Right. For two impartial games, reversing the players in the source leaves the options unchanged, so the two-board game is just their Conway sum.

Example 5.2 (Strategy of a morphism)

Let $f:X\to Y$ be a partisan game morphism whose restriction on $R_X(x)$ is injective for every position $x$. Use the positions of $X$ as states, with board position $(x,f(x))$. A Right move in $X$ to $a\in L_X(x)$ is answered in $Y$ by moving to $f(a)$. A Right move in $Y$ to $b\in R_Y(f(x))$ is answered in $X$ by moving to the unique $a\in R_X(x)$ with $f(a)=b$. Both replies give state $a$.

7. References

Last edited