Homework 5
|

Test using 15 in the starting pile.
Hints: Use the class example of Tic-Tac-Toe as a starting point. Note that the following can be used to input a list:
pile=input('Your move? ')
Notes
MAX is stateless meaning that no memory of a previous pile is held. Any pile, for example [1,2,3,4], can be sent to MAX which will return its move.
Problems
Should you see error: (10054, 'Connection reset by peer') sending to the machine failed most likely due to a bad address, no receiving program was bound to the socket or your fire-wall software won't allow Python access to the Internet. The instructor will need to reset the MAX machine.