A simulator and game AI for the dice game Hog
This is the first project from UC Berkeley's CS61a class (The Structure and Interpretation of Computer Programs)
Here is a link to the class website: http://cs61a.org/ Here is a link to the project description: http://cs61a.org/proj/hog/
The only files modified in this project is hog.py
Here is some information from the class website on the project:In Hog, two players alternate turns trying to be the first to end a turn with at least 100 total points. On each turn, the current player chooses some number of dice to roll, up to 10. That player's score for the turn is the sum of the dice outcomes.
For more detailed game rules (including the special cases) please refer to the project's website