Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

Similar documents
Sequential games. We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other.

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6

Senior Math Circles February 10, 2010 Game Theory II

Mohammad Hossein Manshaei 1394

Tangent: Boromean Rings. The Beer Can Game. Plan. A Take-Away Game. Mathematical Games I. Introduction to Impartial Combinatorial Games

STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40

Crossing Game Strategies

Obliged Sums of Games

Formidable Fourteen Puzzle = 6. Boxing Match Example. Part II - Sums of Games. Sums of Games. Example Contd. Mathematical Games II Sums of Games

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

The Hex game and its mathematical side

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Math 152: Applicable Mathematics and Computing

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA

On Variations of Nim and Chomp

Graph Nim. PURE Insights. Breeann Flesch Western Oregon University,

Numan Sheikh FC College Lahore

GAME THEORY. Thomas S. Ferguson

Another Form of Matrix Nim

A Brief Introduction to Game Theory

Subtraction games with expandable subtraction sets

On Variants of Nim and Chomp

1.6 Congruence Modulo m

Nontraditional Positional Games: New methods and boards for playing Tic-Tac-Toe

The tenure game. The tenure game. Winning strategies for the tenure game. Winning condition for the tenure game

Game, Set, and Match Carl W. Lee September 2016

2. The Extensive Form of a Game

NIM Games: Handout 1

Game Theory and an Exploration of 3 x n Chomp! Boards. Senior Mathematics Project. Emily Bergman

Peeking at partizan misère quotients

SOME MORE DECREASE AND CONQUER ALGORITHMS

GAMES AND STRATEGY BEGINNERS 12/03/2017

Solutions to Part I of Game Theory

Week 1. 1 What Is Combinatorics?

A Brief Introduction to Game Theory

Introduction To Game Theory: Two-Person Games of Perfect Information and Winning Strategies. Wes Weimer, University of Virginia

Background. Game Theory and Nim. The Game of Nim. Game is Finite 1/27/2011

Advanced Microeconomics: Game Theory

Lecture 33: How can computation Win games against you? Chess: Mechanical Turk

Three Pile Nim with Move Blocking. Arthur Holshouser. Harold Reiter.

Circular Nim Games. S. Heubach 1 M. Dufour 2. May 7, 2010 Math Colloquium, Cal Poly San Luis Obispo

Counting in Algorithms

arxiv: v1 [math.ho] 17 Mar 2009

Game, Set, and Match A Personal Journey

V. Adamchik Data Structures. Game Trees. Lecture 1. Apr. 05, Plan: 1. Introduction. 2. Game of NIM. 3. Minimax

Game 0: One Pile, Last Chip Loses

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Counting and Probability Math 2320

Final Exam, Math 6105

Dynamic Games: Backward Induction and Subgame Perfection

THE GAME CREATION OPERATOR

Game Theory Basics. Bernhard von Stengel

Playing Games. Henry Z. Lo. June 23, We consider writing AI to play games with the following properties:

A Winning Strategy for the Game of Antonim

Jim and Nim. Japheth Wood New York Math Circle. August 6, 2011

Game, Set, and Match Carl W. Lee September 2016

game tree complete all possible moves

Lab 11: GoFirst and Nim 12:00 PM, Nov 19, 2017

EXPLORING TIC-TAC-TOE VARIANTS

Three-player impartial games

2359 (i.e. 11:59:00 pm) on 4/16/18 via Blackboard

The Game of SET R, and its Mathematics.

What is... Game Theory? By Megan Fava

Surreal Numbers and Games. February 2010

Discrete bidding games

JUSTIN. 2. Go play the following game with Justin. This is a two player game with piles of coins. On her turn, a player does one of the following:

TROMPING GAMES: TILING WITH TROMINOES. Saúl A. Blanco 1 Department of Mathematics, Cornell University, Ithaca, NY 14853, USA

A variation on the game SET

Tic-Tac-Toe on graphs

Chapter 2 Basic Counting

mywbut.com Two agent games : alpha beta pruning

COMPSCI 223: Computational Microeconomics - Practice Final

CHECKMATE! A Brief Introduction to Game Theory. Dan Garcia UC Berkeley. The World. Kasparov

(b) In the position given in the figure below, find a winning move, if any. (b) In the position given in Figure 4.2, find a winning move, if any.

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

Conversion Masters in IT (MIT) AI as Representation and Search. (Representation and Search Strategies) Lecture 002. Sandro Spina

GEOGRAPHY PLAYED ON AN N-CYCLE TIMES A 4-CYCLE

Sequential games. Moty Katzman. November 14, 2017

Analyzing ELLIE - the Story of a Combinatorial Game

Modeling Strategic Environments 1 Extensive form games

A Combinatorial Game Mathematical Strategy Planning Procedure for a Class of Chess Endgames

SMT 2014 Advanced Topics Test Solutions February 15, 2014

Game Theory, Alive. Yuval Peres with contributions by David B. Wilson. September 27, Check for updates at

On Range of Skill. Thomas Dueholm Hansen and Peter Bro Miltersen and Troels Bjerre Sørensen Department of Computer Science University of Aarhus

Figure 1: A Checker-Stacks Position

and problem sheet 7

CS 491 CAP Intro to Combinatorial Games. Jingbo Shang University of Illinois at Urbana-Champaign Nov 4, 2016

On Modular Extensions to Nim

With Question/Answer Animations. Chapter 6

ON SPLITTING UP PILES OF STONES

Some Chip Transfer Games Thomas S. Ferguson University of California, Los Angeles

Advanced Automata Theory 5 Infinite Games

Adversarial Search Aka Games

CSC 110 Lab 4 Algorithms using Functions. Names:

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability

GAME THEORY. Contents. Thomas S. Ferguson University of California at Los Angeles. Introduction. References.

Chapter 1. Probability

Transcription:

1 Tutorial 1 1. Combinatorial games. Recall that a game is called a combinatorial game if it satisfies the following axioms. (i) There are 2 players. (ii) There are finite many possible positions. (iii) The players take turns to make moves. (iv) Perfect information, i.e. both players know the rules and the possible moves of the other player. (v) The game ends in a finite number of moves without a draw. A combinatorial game is said to be impartial if at any position, both players have the same possible moves. Example 1. Chess (if draws are not allowed) is a combinatorial game but it is not impartial. From now on, we only consider impartial combinatorial games. Example 2. The following games are (impartial) combinatorial games. (i) One-pile take away game. (ii) Two-pile take away game. (iii) Subtraction. (iv) Nim. (v) Nimber. Example 3. The following games are not combinatorial games. (i) Poker.

2 (ii) Rock-paper-scissors. (iii) Tic-tac-toe. Note. In poker, there is no perfect information. The second game does not satisfy axiom (iii). In a game of tic-tac-toe, it is possible to get a draw. 2. Solving combinatorial games. Winning strategy: a strategy of a player that guarantees a win. The following result is our starting point of studying combinatorial games. Theorem 1. (Zermelo). In any combinatorial game, exactly one of the players has a winning strategy. Now we may understand the problem of solving a combinatorial game as determining which player has a winning strategy at a given position. To do this, we need to introduce two core concepts. N-positions and P-positions. N-position: a position at which the player who is about to move has a winning strategy. P-position: a position at which the player who just moved has a winning strategy. Characterization of N-positions and P-positions: (i) All terminal positions are P-positions. (ii) From every P-position, any move can only reach an N-position. (iii) From every N-position, there exists at least one move to a P-position. Note. 1. By the above characterization, the player who reaches a P-position has a winning strategy, i.e. keeping staying in P-positions. We call a move form an N-position to a P-position a winning move.

3 2. The above characterization also provides an algorithm to find all P- positions, i.e. backwards induction. Exercise 1. (Subtraction game). There is a pile of chips on the table. In each turn, a player removes 2 or 3 chips. The game ends when there are no possible moves and the player who makes the last move wins. (i) Find all P-positions. (ii) Find all winning moves from the position that there are 2019 chips. Solution: (i). The set of terminal position is {0, 1}. By the characterization of N-positions and P-positions, we have by backwards induction, 0 1 2 3 4 5 6 7 8 9 10 11 P P N N N P P N N N P P Let P = {k N : k 0 or 1(mod5)}. We claim that P is the set of all P-positions. Proof of the claim: (1). Clearly the terminal positions 0 and 1 are in P. (2). If k P, then we have k 2 3 or 4(mod5) and k 3 2 or 3(mod5), hence k 2 / P and k 3 / P. (3). If k / P, then k 2(mod5) or k 3(mod5) or k 4(mod5), in each case, we have either k 2 0 or 1(mod5) or k 3 0 or 1(mod5), hence either k 2 P or k 3 P. By the characterization of P-positions, we complete the proof. (ii). Clearly 2019 4(mod5) is an N-position and the only winning move from 2019 is removing 3 chips to reach 2016. 3. Nim.

4 Model: suppose there are n piles of chips on the table. A move consists of choosing one pile and removing arbitrary positive number of chips from this pile. The player who makes the last move wins. Let P denote the set of P-positions. Theorem 2. P = {(x 1,, x n ) : x 1 x n = 0}. Exercise 2. Consider 3-pile nim. Find all winning moves from position (9, 8, 7). Solution: Note that (1, 0, 0, 1) 2 9 8 7 = (1, 0, 0, 0) 2 (0, 1, 1, 1) 2 (0, 1, 1, 0) 2 =6. Hence (9, 8, 7) is an N-position. The only wining move is (0, 1, 1, 1) 2 (0, 0, 0, 1) 2 = 1. In other words, the only winning move is removing 6 chips from the third pile. There are combinatorial games which can be reduced to the nim games. The following is such an example. Example 4. (Nimble) Suppose there is a line of squares labeled 0, 1, 2,. A finite number of coins are placed on the squares with possibly more than one coin on a single square. See Figure 1 for an example. A move consists of taking one of the coins and moving it to any square to the left. The player who makes the last move wins. Analysis: Note that if we view each coin in the k-th square as a pile of k chips. Then moving a coin from the k-th square to the j-th square (j < k) is equivalent to removing k j chips from the pile of k chips that this coin

5 0 1 2 3 4 5 Figure 1 represents. Hence we can reduce nimble to nim. For example, the nimble in Figure 1 is equivalent to a 5-pile nim with position (1, 1, 3, 4, 4). Exercise 3. Consider the nimble in Figure 1. Is the position a P-position? If it is not a P-position, find all winning moves. Solution: By the above analysis, we know that the nimble in Figure is equivalent to the 5-pile nim (1, 1, 3, 4, 4). Note that (0, 0, 1) 2 (0, 0, 1) 2 1 1 3 4 4 = (0, 1, 1) 2 (1, 0, 0) 2 (1, 0, 0) 2 (0, 1, 1) 2 =3. Hence the position is an N-position. It is easy to see the only winning move from this position is moving the coin in the square 3 to the square 0.