×

# Winning Positions

In this week's post, we learn about Winning Positions for Combinatorial Games.

How would you use Winning Positions to solve the following problem? >

In Worked Example 2, how many winning positions are there on a $$k \times n$$ grid?

Note by Calvin Lin
4 years, 7 months ago

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

• bulleted
• list

1. numbered
2. list

1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

> This is a quote
This is a quote
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$...$$ or $...$ to ensure proper formatting.
2 \times 3 $$2 \times 3$$
2^{34} $$2^{34}$$
a_{i-1} $$a_{i-1}$$
\frac{2}{3} $$\frac{2}{3}$$
\sqrt{2} $$\sqrt{2}$$
\sum_{i=1}^3 $$\sum_{i=1}^3$$
\sin \theta $$\sin \theta$$
\boxed{123} $$\boxed{123}$$

Sort by:

Let $$T(k,n)$$ denote the number of winning positions on a $$k \times n$$ grid. The top row always ends in … W W L W W L W W L, and whether this row starts with a W or with an L depends on $$n$$.

• If $$n \equiv 0 \pmod{3}$$, then the top row is W W L W W L […] W W L, so the last position in the row beneath is an L (because the only possible move brings the opponent in a winning position) and the pattern continues. It's easy to see that $$\frac{2}{3}$$ of all positions in this grid are winning, so,

$T(k,n) = \frac{2}{3} \cdot k \cdot n \quad \left( \text{if }n \equiv 0 \pmod{3} \right).$

• If $$n \equiv 2 \pmod{3}$$, then the top row is W L W W L […] W W L, so the last position in the row beneath is an L and the pattern continues. In each row, the number of winning positions is $$\frac{2}{3}\cdot (n-2) + 1$$, so,

$T(k,n) = k\left(\frac{2(n-2)}{3}+ 1 \right) \quad \left( \text{if }n \equiv 2 \pmod{3} \right).$

• If $$n \equiv 1 \pmod{3}$$, things are getting real interesting. The top row is L W W L […] W W L, so the entire second row is winning, because you can put your opponent in a losing position by moving to the leftmost square of the top row! But that means the last position in the third row is losing, and the third row is exactly the same as the first row, so the first position in the third row ls L, so the entire fourth row is winning. More generally,

\text{the }t\text{-th row is} \begin{cases} \begin{align*} \text{L W W L W W L […] W W L}&\quad \left( \text{ if }t\text{ is odd}\right) ,\\ \text{W W W W W W […] W W W}&\quad \left( \text{ if }t\text{ is even}\right) . \end{align*} \end{cases}

In all even rows, there are $$n$$ winning positions. In all odd rows, there are $$\frac{2}{3}\cdot(n-1)$$ winning positions. So,

$T(k,n) = \left \lfloor \frac{k}{2} \right \rfloor \cdot n + \left \lceil \frac{k}{2} \right \rceil \cdot \frac{2(n-1)}{3} \quad \left( \text{if }n \equiv 1 \pmod{3} \right).$

Whew.

- 4 years, 7 months ago