Games, Triangulations, Theory

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

Subtraction games with expandable subtraction sets

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

Impartial Combinatorial Games Berkeley Math Circle Intermediate II Ted Alper Evans Hall, room 740 Sept 1, 2015

Obliged Sums of Games

Senior Math Circles February 10, 2010 Game Theory II

Analyzing ELLIE - the Story of a Combinatorial Game

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

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

PRIMES STEP Plays Games

On Variations of Nim and Chomp

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

arxiv: v2 [cs.cc] 18 Mar 2013

New Values for Top Entails

On Variants of Nim and Chomp

GAMES AND STRATEGY BEGINNERS 12/03/2017

(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.

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

Numan Sheikh FC College Lahore

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

7. Suppose that at each turn a player may select one pile and remove c chips if c =1

A Winning Strategy for the Game of Antonim

Solutions to Part I of Game Theory

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

GAME THEORY. Thomas S. Ferguson

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

Moneybags. by Will Chavis. Combinatorial Games. Instructor: Dr. Harold Reiter

NIM WITH A MODULAR MULLER TWIST. Hillevi Gavel Department of Mathematics and Physics, Mälardalen University, Västerås, Sweden

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

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

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

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

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

Game Playing Part 1 Minimax Search

1 In the Beginning the Numbers

Definition 1 (Game). For us, a game will be any series of alternating moves between two players where one player must win.

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

QUIZ: Fill in the blank. Necessity is the Mother of.

Figure 1: The Game of Fifteen

OCTAGON 5 IN 1 GAME SET

Math 152: Applicable Mathematics and Computing

Another Form of Matrix Nim

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

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

Figure 1: A Checker-Stacks Position

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

DELUXE 3 IN 1 GAME SET

Problem F. Chessboard Coloring

Figure 1. Mathematical knots.

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

Selected Game Examples

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

Contest 1. October 20, 2009

Legend. The Red Goal. The. Blue. Goal

Eric Duchêne (Univ. Claude Bernard Lyon 1) Michel Rigo (University of Liège)

Higher Nimbers in Pawn Endgames on Large Chessboards

Master of Science in Advanced Mathematics and Mathematical Engineering

Surreal Numbers and Games. February 2010

Crossing Game Strategies

VARIATIONS ON NARROW DOTS-AND-BOXES AND DOTS-AND-TRIANGLES

Math 152: Applicable Mathematics and Computing

Enumerative Combinatoric Algorithms. Gray code

On Modular Extensions to Nim

Sept. 26, 2012

Higher nimbers in pawn endgames on large chessboards

SOME MORE DECREASE AND CONQUER ALGORITHMS

c c 2. Find ALL winning moves from the above starting position with four clerics shown.

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

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

2. The Extensive Form of a Game

Name Date. Sample Spaces and Probability For use with Exploration 12.1

1, 2,, 10. Example game. Pieces and Board: This game is played on a 1 by 10 board. The initial position is an empty board.

Hackenbush. Nim with Lines (and something else) Rules: Example Boards:

Game, Set, and Match A Personal Journey

LEARNING ABOUT MATH FOR GR 1 TO 2. Conestoga Public School OCTOBER 13, presented by Kathy Kubota-Zarivnij

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

Take one! Rules: Two players take turns taking away 1 chip at a time from a pile of chips. The player who takes the last chip wins.

LAMC Junior Circle February 3, Oleg Gleizer. Warm-up

ITEC 2600 Introduction to Analytical Programming. Instructor: Prof. Z. Yang Office: DB3049

Advances in losing THANE E. PLAMBECK

Game Simulation and Analysis

Ultimately bipartite subtraction games

COMBINATORIAL GAMES: MODULAR N-QUEEN

Z0Z. 0j0 ZPZ. 0J0 b c d

Chapter 2. Permutations and Combinations

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

The game of Reversi was invented around 1880 by two. Englishmen, Lewis Waterman and John W. Mollett. It later became

Introductory Probability

Mathematics. Programming

Second Annual University of Oregon Programming Contest, 1998

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

CS 787: Advanced Algorithms Homework 1

Organization Team Team ID# If each of the congruent figures has area 1, what is the area of the square?

Received: 10/24/14, Revised: 12/8/14, Accepted: 4/11/15, Published: 5/8/15

Section 6.1 #16. Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Open Problems at the 2002 Dagstuhl Seminar on Algorithmic Combinatorial Game Theory

Exploring Concepts with Cubes. A resource book

PLAYFUL MATH AN INTRODUCTION TO MATHEMATICAL GAMES

Analyzing Games: Solutions

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

Transcription:

KTdCW Spieltheorie Games, Triangulations, Theory Oswin Aichholzer, University of Technology, Graz (Austria) KTdCW, Spieltheorie, Aichholzer NIM & Co 0 What is a (mathematical) game? 2 players [ A,B / L(eft),R(ight) / R(ed),B(lack) ] the players move in turns (A,B,A,B,A,B ) Both players have complete information (no hidden cards ) No randomness (flipping coins, roling dice ) A (finite) set of positions, one (or more) marked as starting position KTdCW, Spieltheorie, Aichholzer NIM & Co 1 1

What is a (mathematical) game, cont? For each position there exists a set of successors, (possibly empty) A players move: transformation from one position to a legal successor Normal play: the first player which can NOT move loses (the other wins) Every game ends after a finite number of moves No draws KTdCW, Spieltheorie, Aichholzer NIM & Co 2 Chocolate game (Chomp) A A B A A B B B KTdCW, Spieltheorie, Aichholzer NIM & Co 3 2

Who wins a game? Which player wins the game (A,B)? First player (starting) or second player? Assume both players play optimal: There are First-Player-win und Second- Player-win games. What is the optimal strategy? KTdCW, Spieltheorie, Aichholzer NIM & Co 4 Chocolate game (again) Tweedledum-Tweedledeeprinciple A Alice in Wonderland by Lewis Carrol KTdCW, Spieltheorie, Aichholzer NIM & Co 5 3

NIM Who knowns NIM? n piles of k 1,,k n > 0 coins valid moves: chose a single (non-empty) pile remove an arbitrary number of coins from the pile (at least one, at most all) Remember: normal play: the last one to make a valid move wins KTdCW, Spieltheorie, Aichholzer NIM & Co 6 Prime-game n integers f 1,,f n >1 Valid move: Choose a integer f i >1 Split f i into (one or more) prime factors p 1,,p k >1, k 1, and a rest f >1. (i.e. f i =p 1 * * p k *f ) Replace f i with p 1,,p k and f. KTdCW, Spieltheorie, Aichholzer NIM & Co 7 4

Poker-NIM Start position: Same as for NIM Possible moves: Similar to NIM, but instead of removing coins you may also put an arbitrary number of coins from your pool (build by previously taken coins) on a heap. KTdCW, Spieltheorie, Aichholzer NIM & Co 8 Northcott s Game nxm chess board one black, one white coin per row in different columns Valid move: Chose a row move the coin of your color left or right arbitrary many steps don t jump over your opponents coin KTdCW, Spieltheorie, Aichholzer NIM & Co 9 5

Kayles (aka Rip Van Winkle s Game) Bowling: Row of n pins. In a move hit one or two neighbored pins. KTdCW, Spieltheorie, Aichholzer NIM & Co 10 Dawson s Kayles Bowling: Row of n pins. In a move always hit two neighbored pins. Single pins can be removed KTdCW, Spieltheorie, Aichholzer NIM & Co 11 6

Kayles II Setting: As for NIM Possible moves: Chose an arbitrary, non-empty stack Remove 1 or 2 coins from this stack Optional: split the remaining stack into two nonempty, smaller stacks Bowling: Row of n pins. In a move hit one or two neighbored pins. KTdCW, Spieltheorie, Aichholzer NIM & Co 12 Dawson s Kayles II Setting: As for NIM Possible moves: Chose an arbitrary, non-empty stack Remove 2 coins from this stack Optional: split the remaining stack into two nonempty, smaller stacks Bowling: Row of n pins. In a move hit two neighbored pins. KTdCW, Spieltheorie, Aichholzer NIM & Co 13 7

Monochromatic Triangle n points in the plane, general position Valid move: Draw a line connecting two points, not crossing any other line The game ends when an empty triangle occurs KTdCW, Spieltheorie, Aichholzer NIM & Co 14 Triangulation Coloring Game Triangulation on n points in the plane, all edges are black Valid moves: Select a black edge, color it green The game ends when the first green empty triangle occurs. KTdCW, Spieltheorie, Aichholzer NIM & Co 15 8

Sprague-Grundy-Theroy (1935/39; aka NIM-theory) Which games? Games: Chocolate game (chomp) NIM Prime-game Poker NIM Northcott s Game Kayles Dawson s Kayles Monochromatic Triangle Triangulation Coloring Game KTdCW, Spieltheorie, Aichholzer NIM & Co 16 Nimbers and NIM-Theory Nimbers *i are a code for a game-position: * i, i 0 1 st player win (the next to move) * 0 2 nd player win (the one just moved) For optimal play, always try to reach a position with nimber *0 KTdCW, Spieltheorie, Aichholzer NIM & Co 17 9

Nimbers and NIM-Theory A good code provides: From a *0 situation no legal move leads to another *0 situation If I made a winning move, my opponent can not From any *i, i 0, situation there is a legal move to a *0 situation If my opponent gives me a non-optimal situation, I can make a winning move KTdCW, Spieltheorie, Aichholzer NIM & Co 18 Nimbers and NIM-Theory MEX-rule (Minimal Excluded): The nimber of a position P is the smallest value which is NOT a nimber of any position which is reachable by a valid move from P. From a *0 situation no legal move leads to another *0 situation From any *i, i 0, situation there is a legal move to a *0 situation KTdCW, Spieltheorie, Aichholzer NIM & Co 19 10

Nimbers and NIM-Theory XOR-rule: The nimber of set of positions is the XOR-sum of the nimber s of the situations. Simplifies computation of nimbers using the MEX-rule for several piles KTdCW, Spieltheorie, Aichholzer NIM & Co 20 NIM NIM: A stack of size i has nimber *i The nimber of a group of stacks is their XOR-sum Always make a position to get *k 1 *k 2 *k 3 *k n = 0 KTdCW, Spieltheorie, Aichholzer NIM & Co 21 11

Games, Triangulations, Theory Literature: Winning Ways for Your Mathematical Plays E.R. Berlekamp, J.H. Conway and R.K. Guy: Second Edition 2001, Volume 1, A K Peters, Ltd. Games on triangulations O. Aichholzer, D. Bremner, E.D. Demaine, F. Hurtado, E. Kranakis,H. Krasser, S. Ramaswami, S. Sethia, and J. Urrutia: Theoretical Computer Science, 343(1-2):42-71,2005. links: Triangulation games: http://www.cs.mcgill.ca/~pcastr/cs507/ Northcotts game: http://www.cut-theknot.org/recurrence/northcott.shtml KTdCW, Spieltheorie, Aichholzer NIM & Co 22 Thanks! Thanks for your attention KTdCW, Spieltheorie, Aichholzer NIM & Co 23 12