Initial game state – 5 rows, 3 maximum tokens:
====================
1 #
2 ##
3 ###
4 ###
5 ###
====================
Game with 4 rows, 3 tokens max:
====================
1 #
2 ##
3 ###
4 ###
====================
Choose a row 1 - 4
====================
1 #
2 ##
3 ###
4 ###
====================
Choose a row 1 - 4 2
How many tokens to take, 1 to 3 (no more than are available)
====================
1 #
2 ##
3 ###
4 ###
====================
Choose a row 1 - 4 2
How many tokens to take, 1 to 3 (no more than are available) 2
====================
1 #
2
3 ###
4 ###
====================
Choose a row 1 - 4
====================
1 #
2
3 ###
4 ###
====================
Choose a row 1 - 4 3
How many tokens to take, 1 to 3 (no more than are available)
====================
1 #
2
3 ###
4 ###
====================
Choose a row 1 - 4 3
How many tokens to take, 1 to 3 (no more than are available) 2
====================
1 #
2
3 #
4 ###
====================
Choose a row 1 - 4
Choose a row 1 - 4 4
How many tokens to take, 1 to 3 (no more than are available) 3
====================
1 #
2
3 #
4
====================
Choose a row 1 - 4
====================
1 #
2
3 #
4
====================
Choose a row 1 - 4 1
How many tokens to take, 1 to 3 (no more than are available) 1
====================
1
2
3 #
4
====================
Choose a row 1 - 4
====================
1 #
2
3 #
4
====================
Choose a row 1 - 4
Choose a row 1 - 4 1
How many tokens to take, 1 to 3 (no more than are available) 1
====================
1
2
3 #
4
====================
Choose a row 1 - 4 3
How many tokens to take, 1 to 3 (no more than are available) 1
Game over, the last player lost!
====================
1 ####
2 ###
3
4 #
====================
Represented with the list [4,3,0,1]
nim.py fileAdd at the top of nim.py your name, and the name of any lab partners you worked with, as well as docstrings for each function.
Remember to document your code!
Three ways to document your code: