# Name: # Kerberos: # 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"