Coin War Assignment

Coin War

Your job is to implement a Python player for the game of Coin War, as described here. Your player should output in roughly the same format as the sample game shown in the game rules.

You need not write your own tests for this game. Instead, I have supplied 10 tests that your program should pass here. Each test consists of an initial state and an expected game result. To run these tests, you will have to write your program so that it can optionally take a given initial state rather than randomly generating one itself, either from the test file or by typing it in by hand.

Extra Credit: Put a graphical user interface (GUI) on your program and allow a human to play against the computer. Do it however you like. I don't know what "Extra Credit" means here: a few points plus a pat on the back, probably. Usually the folks that claim it are the ones who don't need it anyhow.

Your assignment is to write and test a program that meets the specification. Submit the program as a text file with the name given in the problem. Also include a text file called "writeup.txt" containing a writeup that contains a brief note about what you did, what problems you had, and what you learned.