Game 0: One Pile, Last Chip Loses

Similar documents
GAMES AND STRATEGY BEGINNERS 12/03/2017

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.

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

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

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

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

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

Senior Math Circles February 10, 2010 Game Theory II

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

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

SOME MORE DECREASE AND CONQUER ALGORITHMS

CS103 Handout 25 Spring 2017 May 5, 2017 Problem Set 5

Sept. 26, 2012

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

Mathematics Alignment Lesson

Specification Due Date: Friday April 7 at 6am Top-down Program Outline Due Date: Wednesday April 19 at 6am Program Due Date: Monday May 15 at 6am

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

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

A Winning Strategy for the Game of Antonim

Contest 1. October 20, 2009

Crossing Game Strategies

The Game of SET R, and its Mathematics.

Binary Games. Keep this tetrahedron handy, we will use it when we play the game of Nim.

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

The Game of SET R, and its Mathematics.

EXPLORING TIC-TAC-TOE VARIANTS

Grade 7 & 8 Math Circles. Mathematical Games

Go Fish (Addition facts to Ten)

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

Ovals and Diamonds and Squiggles, Oh My! (The Game of SET)

100 square muddle. A game for two or three players

of Nebraska - Lincoln

Obliged Sums of Games

Caterpillar Chase. Race to the Finish. On the Ferris Wheel

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

Array Cards (page 1 of 21)

Checkpoint Questions Due Monday, October 7 at 2:15 PM Remaining Questions Due Friday, October 11 at 2:15 PM

select the 4 times tables and then all the number tiles used would be 4 x something

Mathematical Talk. Fun and Games! COUNT ON US MATHS CLUB ACTIVITIES SESSION. Key Stage 2. Resources. Hints and Tips

Classic Dominoes. Number of Players: 2-4

Blazing 7s Blackjack Progressive

Problem F. Chessboard Coloring

The Product Game: Playing the Product Game

Practice Midterm Exam 5

Math 152: Applicable Mathematics and Computing

Counters in a Cup In and Out. The student sets up the cup, drops the counters on it, and records how many landed in and out of the cup.

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

Problem Solving By Cynthia Northrup

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.


Part I. First Notions

Number Bases. Ideally this should lead to discussions on polynomials see Polynomials Question Sheet.

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

Jeremy Beichner MAED 591. Fraction Frenzy

Fun and Games on a Chess Board II

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

Best of luck on the exam!

Phase 10 Masters Edition Copyright 2000 Kenneth R. Johnson For 2 to 4 Players

Stat 155: solutions to midterm exam

Math Circle: Logic Puzzles

Some Unusual Applications of Math

On Modular Extensions to Nim

STAT 311 (Spring 2016) Worksheet: W3W: Independence due: Mon. 2/1

PHASE 10 CARD GAME Copyright 1982 by Kenneth R. Johnson

Abstract: The Divisor Game is seemingly simple two-person game; but, like so much of math,

Math Games Ideas. For School or Home Education. by Teresa Evans. Copyright 2005 Teresa Evans. All rights reserved.

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

of Nebraska - Lincoln

Lecture 11 Strategic Form Games

by Teresa Evans Copyright 2005 Teresa Evans. All rights reserved.

CS103 Handout 22 Fall 2017 October 16, 2017 Practice Midterm Exam 2

Week 1. 1 What Is Combinatorics?

The Game of SET! (Solutions)

Cornwall Senior Citizens Bridge Club Declarer Play/The Finesse. Presented by Brian McCartney

Chapter 1. Probability

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

Fun and Games on a Chess Board

Blazing 7 s Blackjack Progressive

Multiplication What s Inside?

Polygon Quilt Directions

What s Inside? Number Strand

SPRING OPEN ENDED CARD GAME

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

Problem Set pour from the receptacle to a bucket until the bucket is full or the receptacle is empty, whichever happens first,

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

Game Playing Part 1 Minimax Search

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

Positive Triangle Game

Determine the Expected value for each die: Red, Blue and Green. Based on your calculations from Question 1, do you think the game is fair?

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

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

Final Exam, Math 6105

CS 787: Advanced Algorithms Homework 1

THE GAME CREATION OPERATOR

The Hex game and its mathematical side

UCI Math Circle October 10, Clock Arithmetic

WORD WINDER Game Play Basics It s As Easy as ABC

Broken Hearts Rhythm Game/Flashcards

PLAYFUL MATH AN INTRODUCTION TO MATHEMATICAL GAMES

Factors and multiples have

Transcription:

Take Away Games II: Nim April 24, 2016 The Rules of Nim The game of Nim is a two player game. There are piles of chips which the players take turns taking chips from. During a single turn, a player can only take chips from one pile. A player must take at least one chip per turn. player can take more if they choose. However, a Game 0: One Pile, Last Chip Loses To check if you've fully grasped the rules, we'll play two easy games. Make a single pile of as many chips as you would like. 1. If the player who takes the last piece loses, who will win the game? The rst player or the second player? 2. If the player who takes the last piece wins, who will win the game? The rst player or the second player? 1

Game 1: Two Equal Piles, Last Chip Loses For Game 1, create two equal piles with two or more chips in each pile. The player who takes the last chip loses. Play the game a number of times with a partner and gure out the winning strategy. 1. If both players play the game perfectly, will the rst player or second player win every time? 2. In order to win, what strategy does the winning player use? 3. Does the strategy still work if you start with any sized piles so long as they are equal? Play more games if necessary. 4. Edge Case: what if each pile only has one chip? Who will win the game? Will the same strategy still work? 2

Game 2: Two Unequal Piles, Last Chip Loses For Game 2, create two piles with the rst pile having one more chip than the second (i.e. piles of 4 and 3 or piles of 5 and 4). 1. If both players play the game perfectly, will the rst player or second player win every time? 2. In order to win, what strategy does the winning player use? 3. Would it would still be a winning strategy if one pile was larger than other by any amount greater than one? 3

And The Winner Is... 1. Say Player A always goes rst and Player B always goes second. In Game 1, you started o with two equal piles and gured out who would win. In Game 2, you started o with two unequal piles and gured out who would win. Can the same player win both games? 2. If I tell you the game state (e.g. the current size of both piles) and whose turn it is, could you tell me who would win? Let's see. (a) The pile sizes are 2 and 2. It is Player A's turn. Which player will win? (b) The pile sizes are 29 and 27. It is Player A's turn. Which player will win? (c) The pile sizes are n and n. it is Player A's turn. Which player will win? (d) The pile sizes are n and n + 97. It is Player A's turn. Which player will win? 3. What game state is always a winning state for the player taking their turn? 4. What game state is always a losing state for the player taking their turn? 4

Game 3: Three Piles, Last Chip Loses For Game 3, create three piles. Two piles must to have the same number of chips; the third pile can have any number of chips. 1. If both players play the game perfectly, will the rst player or second player win every time? 2. In order to win, what strategy does the winning player use? 3. Who wins if the third pile has the same number of chips as the rst two piles? 4. Does it matter how many chips are in the third pile? What about the winning strategy makes this the case? 5

Nim Mania! 1. If you started a game with as many piles as you like and each pile had one chip, in what scenario would the rst player win? What scenarios would the second player win? 2. In a three pile game where the player who takes the last chip losses, there are 13 losing states. Prove the state with pile sizes of (1, 2, 3) is a losing state for a Player A who is about to take their turn. Hint: show that all six moves the player can take results in a winning position for Player B based on what you've learned from Games 1-3. (Showing something is true for all nite cases is called proof by exhaustion in mathematics.) 3. In Game 1, you determined who would win if the game started with with two equally-sized piles. Who would win if there were any even number of equally-sized piles? Hint: break the piles into pairs and treat each pair as its own two-pile game. 6