4 minute read

Basic DefinitionsPermalink

Normal play: first player who cannot move loses (and therefore no draws)

Two kinds of normal play:

Impartial: For every position the moves available doesn’t depend on whose turn it is. Partisan: Not impartial

Two players are called Louise and Richard. Let α be a position in some normal game:

α={α1,α2,,αnβ1,β2,,βm}

where αi is the position where Louise can move from α, and βj is the position where R can move from α

Types of PositionsPermalink

(L) Louise has a winning strategy regardless of who moves first at α (R) Richard has a winning strategy regardless of who moves first at α (N) Player who moves next has a winning strategy (P) Player who moves previous has a winning strategy

Definitions, Lemma, and PropositionsPermalink

Prop: If γ={α1,α2,,αnβ1,β2,,βm},then γ has type:

  Some βi is (R) or (P) All βi is (L) or (N)
Some αi is (L) or (P) N L
Some αi is (R) or (N) R P

Def: Given position α,β, not necessary in the same game, define α+β to be a new position where move at α+β consists of moves in α or β

α+β L R P N
L L ? L ?
R ? R R ?
P L R P N
N ? ? N ?

Def: If γ, α+γ=β+γ, we say αβ

Lemma: If αβ, then α and β has same type

Prop: (1) αα (2) αββα (3) αβ,βγαγ (4) α+ββ+α (5) (α+β)+γα+(β+γ)

Lemma:If αα, then α+βα+ββ

Lemma:If β is (P), then α,α+βα

Prop: If α,α are (P), then αα

Lemma: If α+β,α+β are both (P), then αα

Inverse ElementPermalink

We have the identity element (P) now, what about the inverse element, namely: α+(α)=(P)?

For impartial games: α+α=(P). The strategy is that the second player just copies the first player’s move in other game.

In general normal game:

α={α1,α2,,αnβ1,β2,,βm}α={β1,β2,,βmα1,α2,,αn}α+(α)=(P)

Impartial GamesPermalink

NimPermalink

Here is the rule and other info about Nim. In short there are multiple heaps of stones. Each turn each player takes out any number(at least one) of stones from one heap.

We define a as one heap with a stones (Nimber)

Def: a1+a2++ak is balanced if k, 2k in binary appears in even number of ai’s.

We know that no stone at all is balanced. Then how do we make unbalanced pile balanced with one move?

Look for the max 2l that appears on odd number of times; take that away, and adjust the lower positions as you like. It is always valie because 2n1=2n1+2n2++2+1

Note: a1+a2++an0 when ai is balanced

Claim: Every unbalanced pile is equivalent to b:

bZ0a1++ak=b

Idea: a1++ak+b0 Then: b=i=0ci2i where

ci={1if2i appears in an odd number of ai0ifotherwise

Sprague–Grundy TheoremPermalink

Sprague-Grundy Theorm: Every impartial game is equivalent to a nimber.

Def: If S=a1,,anZ0, then

mex(S):=smallest bZ0S, (mex(S)0)

Claim: (α={a1,,an})+b is (P) when b=mex(a1,,an) (note that α can be the position an any game, not just nim). We skip the proof here because I am lazy

Corollary: if αiai, i=1,2,,n, then {α1,,αn}b, where b=mex(a1,,an)

Partisan GamesPermalink

HackenbushPermalink

Here is the rule and other info about Hackenbush, and let’s have Richard plays Red and Louise plays Black. Since it is a partisan game, we might want to have some kind of definition of “advantage”. All the following definitions are from Louise’s perspective; namely, Black’s advantage is positive and Red’s is negative.

We use n notation to define an advantage of n.

Some DefinitionsPermalink

Only ground and nothing else is 0

Ground with one black on it is 1, and ground with one red on it is (1)

Ground with n blacks on it is n, and vice versa for red.

What is advantage of 12?

We want α+α=1, or α+α+(1)=0, which is (P)

So we define one black on the ground, and one red on the black is 12. Similarly, one black on the ground and k red on the black is 12k. (It doesn’t matter how those reds are put on the black, as long as once we take out the black and they all die)

Prop: 12k+12k=12k1

Dyadic NumberPermalink

Dyadic numbers are rationals of form a2k,a,kZ

ConstructionPermalink

0 is born on day 0

1,1 are born on day 1

2,2,12,12 are born on day 2

If a0<a1<<an are born on days 0,1,,n, the numbers born on day n+1 are: a01,ak+1,ai+ai+12i=0,,k1

It can be easily known that all dyadic numbers will be born.

Lemma: Every open interval in R has a unique oldest dyadic number

Def: a2k=(dZ2d):=2d

Lemma: If ai=0 or 2d, and if a1++ak=0, then a1+a2++ak=0

Collery: If a,b are dyadic numbers:

a=aa+b=(a+b)

If a is dyadic:

a>0a is (L)a<0a is (R)a=0a is (P)

The Simplicity PrinciplePermalink

Theorm: γ={α1,,αmβ1,,βn}. Suppose αiai, βjbj for some dyadic number ai,bj i,j, assuming a1<a2<<am, b1<b2<<bn. Then if am<b1, then γc, where c is the unique oldest dyadic number in interval (am,b1)

Lemma: Let c=a2k, a0,k1. Suppose a player moves c to c. If Louise moved, cc12k If Richard moved, cc+12k

Comments