This repository contains an implementation of the 8 Men Morris game, a variant of the classic board game, using both MiniMax and Alpha-Beta pruning algorithms. The project showcases different strategies and improvements for playing the game, demonstrating the effectiveness of these algorithms in game theory and artificial intelligence.
Explore the sample outputs to understand the AI's decision-making process and its effectiveness in different game stages.
python3 playGame.py
python3 program_name.py input_board_file output_file max_depth
python3 MiniMaxOpening.py board1.txt board2.txt 2
python3 MiniMaxGame.py board3.txt board4.txt 2
python3 ABOpening.py boardalphabeta1.txt boardalphabeta2.txt 2
python3 ABGame.py boardalphabeta3.txt boardalphabeta4.txt 2
python3 MiniMaxOpeningBlack.py boardblack1.txt boardblack2.txt 2
python3 MiniMaxGameBlack.py boardblack3.txt boardblack4.txt 2
python3 MiniMaxOpeningImproved.py boardimproved1.txt boardimproved2.txt 2
python3 MiniMaxGameImproved.py boardimproved3.txt boardimproved4.txt 2