# Name: # checkoff4_nims.py def play_nims(pile, max_stones): ''' An interactive two-person game; also known as Stones. @param pile: the number of stones in the pile to start @param max_stones: the maximum number of stones you can take on one turn ''' ## Basic structure of program (feel free to alter as you please): # while [pile is not empty]: # while [player 1's answer is not valid]: # [ask player 1] # [execute player 1's move] # # while [player 2's answer is not valid]: # [ask player 2] # [execute player 2's move] # # print "Game over" pass #delete this line when you begin writing your code # uncomment the last line to play the game # with a pile of 100 and maximum of 5 stone removed per turn # play_nims(100, 5)