Nine Men's Morris implementation with AI player.
Requirements: python3.9 tabulate==0.9.0 To run program, run ui_game.py file
python3 -m ui_game
-
In the main menu you can choose the size of the board. There are 4 possible variations: Three,__ Six__, Nine or Twelve men's morris, each with different number of points. Different board sizes have different game phases and game rules. For details go to Wikipedia Nine Men's Morris page
-
Next you can choose the two player's mode or a game with the computer
-
Player puts pawns on the board by typing the coordinates of desired point.
The computer player checks possible future moves and predicts the optimal move using MiniMax algorithm with alpha-beta pruning. The depth of search is set to 4.
Start Menu:
Three Men's Morris board:
Six Men's Morris board:
Players symbols: