Combinatorial Game Theory
Total Page:16
File Type:pdf, Size:1020Kb
Combinatorial Game Theory Cordelia Theseira and Nathan Josephs Boston University 1/31/19 Cordelia Theseira and Nathan Josephs ONAG 1 / 17 Let's Play a Game Rules of the Game: On your turn, you can take any number of coins provided they all come from the same heap The person who takes the last coin from all the heaps, wins. i.e. there are no coins left Cordelia Theseira and Nathan Josephs ONAG 2 / 17 Outline 1 What is a Game? 2 Games which are numbers Winning Strategies Simplicity Rule 3 Game of Nim Nim Addition 4 Conclusion Cordelia Theseira and Nathan Josephs ONAG 3 / 17 What is a Game? 8 rules for Combinatorial Games: 1 Two players, Left and Right 2 Finite many positions, including a starting position 3 Clearly defined rules for players to move from the current position to its options 4 Left and Right alternate in turns 5 Complete information 6 No chance moves 7 In the normal play convention the player unable to move loses 8 There exists an ending condition, i.e. game ends when either player is unable to move Cordelia Theseira and Nathan Josephs ONAG 4 / 17 G = fa; b; c; :::jd; e; f ; :::g Where G is the current position of the game and is determined by the options of the Left and Right players. G is a number when a; b; c; ::: ≤ d; e; f ; ::: Which Games are numbers? Cordelia Theseira and Nathan Josephs ONAG 5 / 17 G is a number when a; b; c; ::: ≤ d; e; f ; ::: Which Games are numbers? G = fa; b; c; :::jd; e; f ; :::g Where G is the current position of the game and is determined by the options of the Left and Right players. Cordelia Theseira and Nathan Josephs ONAG 5 / 17 Which Games are numbers? G = fa; b; c; :::jd; e; f ; :::g Where G is the current position of the game and is determined by the options of the Left and Right players. G is a number when a; b; c; ::: ≤ d; e; f ; ::: Cordelia Theseira and Nathan Josephs ONAG 5 / 17 Winning Strategies If G > 0, there is a winning strategy for Left. If G < 0, there is a winning strategy for Right. If G = 0, there is a winning strategy for the second player. Gjj0, there is a winning strategy for the first player. Cordelia Theseira and Nathan Josephs ONAG 6 / 17 Common Games 0 = fjg which is the ending condition n + 1 = fnjg which is a Left player win −n + 1 = fj − ng which is a Right player win ∗ = f0j0g which is a first player win Cordelia Theseira and Nathan Josephs ONAG 7 / 17 1 1 If Left has options f-3, 2 , 7g, options −3 and 2 would be dominated by 7. If Right had options f-6, -2, 0g, options 0 and 2 would be dominated by −6. Simplifying Games To simplify a game, we eliminate dominated options Cordelia Theseira and Nathan Josephs ONAG 8 / 17 Simplifying Games To simplify a game, we eliminate dominated options 1 1 If Left has options f-3, 2 , 7g, options −3 and 2 would be dominated by 7. If Right had options f-6, -2, 0g, options 0 and 2 would be dominated by −6. Cordelia Theseira and Nathan Josephs ONAG 8 / 17 a A whole number is simpler than 2 . a a 2 is simpler than 4 and so on. The smallest number that satisfies the above is the simplest number. Simplicity Rule Definition If all the options for both players of some game G are numbers, and every Left option is less than or equal to every Right option, then G itself is a number, namely the simplest number greater than every Left option and less than every Right option. 2p + 1 2p 2p + 2 p p + 1 G = = f j g = f j g 2n+1 2n+1 2n+1 2n 2n Cordelia Theseira and Nathan Josephs ONAG 9 / 17 Simplicity Rule Definition If all the options for both players of some game G are numbers, and every Left option is less than or equal to every Right option, then G itself is a number, namely the simplest number greater than every Left option and less than every Right option. 2p + 1 2p 2p + 2 p p + 1 G = = f j g = f j g 2n+1 2n+1 2n+1 2n 2n a A whole number is simpler than 2 . a a 2 is simpler than 4 and so on. The smallest number that satisfies the above is the simplest number. Cordelia Theseira and Nathan Josephs ONAG 9 / 17 5 , then G = 2 . If G = {−2j2g, then G = −1. 5 3 If G = f 4 j2g, then G = 2 . Examples If G = f2j3g Cordelia Theseira and Nathan Josephs ONAG 10 / 17 If G = {−2j2g, then G = −1. 5 3 If G = f 4 j2g, then G = 2 . Examples 5 If G = f2j3g, then G = 2 . Cordelia Theseira and Nathan Josephs ONAG 10 / 17 , then G = −1. 5 3 If G = f 4 j2g, then G = 2 . Examples 5 If G = f2j3g, then G = 2 . If G = {−2j2g Cordelia Theseira and Nathan Josephs ONAG 10 / 17 5 3 If G = f 4 j2g, then G = 2 . Examples 5 If G = f2j3g, then G = 2 . If G = {−2j2g, then G = −1. Cordelia Theseira and Nathan Josephs ONAG 10 / 17 3 , then G = 2 . Examples 5 If G = f2j3g, then G = 2 . If G = {−2j2g, then G = −1. 5 If G = f 4 j2g Cordelia Theseira and Nathan Josephs ONAG 10 / 17 Examples 5 If G = f2j3g, then G = 2 . If G = {−2j2g, then G = −1. 5 3 If G = f 4 j2g, then G = 2 . Cordelia Theseira and Nathan Josephs ONAG 10 / 17 A nimber, i.e. ?1, ?2, ?3..., represents the number of objects available to the players at every position of the game. E.g. The game we played was: G = f?1;?2;?3;?4;?5;?6j ? 1;?2;?3;?4;?5;?6g Nimbers are their own negatives. i.e. ?1 + ?2 + ?3 = 0 is the same as ?1 + ?3 = ?2 Game of Nim Nim is an impartial game. i.e. At every position, both players have the same legal moves. Cordelia Theseira and Nathan Josephs ONAG 11 / 17 E.g. The game we played was: G = f?1;?2;?3;?4;?5;?6j ? 1;?2;?3;?4;?5;?6g Nimbers are their own negatives. i.e. ?1 + ?2 + ?3 = 0 is the same as ?1 + ?3 = ?2 Game of Nim Nim is an impartial game. i.e. At every position, both players have the same legal moves. A nimber, i.e. ?1, ?2, ?3..., represents the number of objects available to the players at every position of the game. Cordelia Theseira and Nathan Josephs ONAG 11 / 17 Nimbers are their own negatives. i.e. ?1 + ?2 + ?3 = 0 is the same as ?1 + ?3 = ?2 Game of Nim Nim is an impartial game. i.e. At every position, both players have the same legal moves. A nimber, i.e. ?1, ?2, ?3..., represents the number of objects available to the players at every position of the game. E.g. The game we played was: G = f?1;?2;?3;?4;?5;?6j ? 1;?2;?3;?4;?5;?6g Cordelia Theseira and Nathan Josephs ONAG 11 / 17 Game of Nim Nim is an impartial game. i.e. At every position, both players have the same legal moves. A nimber, i.e. ?1, ?2, ?3..., represents the number of objects available to the players at every position of the game. E.g. The game we played was: G = f?1;?2;?3;?4;?5;?6j ? 1;?2;?3;?4;?5;?6g Nimbers are their own negatives. i.e. ?1 + ?2 + ?3 = 0 is the same as ?1 + ?3 = ?2 Cordelia Theseira and Nathan Josephs ONAG 11 / 17 How to lose in a 3-heap game: Equalize two heaps Empty a heap 3-Heap Game Facts: A single non-empty heap is fuzzy. Two equal-sized heaps is a zero game. Two unequal-sized heaps is fuzzy. Cordelia Theseira and Nathan Josephs ONAG 12 / 17 3-Heap Game Facts: A single non-empty heap is fuzzy. Two equal-sized heaps is a zero game. Two unequal-sized heaps is fuzzy. How to lose in a 3-heap game: Equalize two heaps Empty a heap Cordelia Theseira and Nathan Josephs ONAG 12 / 17 Nim Addition Table Cordelia Theseira and Nathan Josephs ONAG 13 / 17 Break each nimber into distinct parts whose sizes are powers of 2, beginning with the largest size. ?10 + ?6 = ?8 + ?2 + ?4 + ?2 ?10 + ?6 = ?8 + ?4 = 12 Nim Addition ?10 + ?6 = 12 Cordelia Theseira and Nathan Josephs ONAG 14 / 17 ?10 + ?6 = ?8 + ?2 + ?4 + ?2 ?10 + ?6 = ?8 + ?4 = 12 Nim Addition ?10 + ?6 = 12 Break each nimber into distinct parts whose sizes are powers of 2, beginning with the largest size. Cordelia Theseira and Nathan Josephs ONAG 14 / 17 ?10 + ?6 = ?8 + ?4 = 12 Nim Addition ?10 + ?6 = 12 Break each nimber into distinct parts whose sizes are powers of 2, beginning with the largest size. ?10 + ?6 = ?8 + ?2 + ?4 + ?2 Cordelia Theseira and Nathan Josephs ONAG 14 / 17 Nim Addition ?10 + ?6 = 12 Break each nimber into distinct parts whose sizes are powers of 2, beginning with the largest size. ?10 + ?6 = ?8 + ?2 + ?4 + ?2 ?10 + ?6 = ?8 + ?4 = 12 Cordelia Theseira and Nathan Josephs ONAG 14 / 17 In the game of Nim: Nimbers are their own negatives In a 3-heap game, the player who equalizes two heaps or empties a heap loses To add nimbers, break each nimber into distinct parts whose sizes are powers of 2 and use arithmetic addition Conclusion A game is a number if: all the options for both players are numbers every Left option is less than or equal to every Right option G will be the simplest number greater than every Left option and less than every Right option.