This is a Python implementation of the Nine Mens Morris game. Instead of Black and White pieces, we have grass and fire. I used pygame to cook up a GUI for the game.
The AI opponent uses minimax strategy at a max depth of 7. (You cabn play around with the depth values in the helper files).
-
Install pygame module. (
pip install pygame
) -
Then run morris.py (tested on Python 3.9)
>> python morris.py