6 Men's Morris, also known as Sixes or Six Men's Morris, is a classic board game that dates back to ancient times. It is a strategy game that combines elements of placement and movement, where players aim to form rows of their pieces while blocking their opponent's moves.
**This serves as Machine Problem 4 in Artificial Intelligence (AI) Subject**
MINIMAX ALGORITHM
is a decision-making technique used in game theory and artificial intelligence. It is commonly employed in turn-based games with multiple possible moves at each turn. The goal of the minimax algorithm is to determine the optimal move for a player, assuming that the opponent also plays optimally.
In PvE - Six Men Morris, the minimax algorithm is utilized by the AI player to make strategic decisions during gameplay. By exploring possible future game states and selecting the move that maximizes its chances of winning while minimizing the opponent's chances, the AI player aims to play optimally and provide a challenging experience for human players.
- Clone repository
https://github.com/ChugxScript/PvE-Six-men-morris.git
- Run
main.py
then play
- User place their pieces on the board
- If mill is form (3 consecutive piece); that current player may remove the opponent piece
- If this 3 piece is not move until the next rounds then that mill is not valid until its move again
- If the opponent has mills then those mills cannot be remove
- Players cannot put the piece on the occupied point/s
- If opponent has only 2 piece then current player won
- If opponent has no available point/s to move then current player won
- If both players has only 3 piece in the board, players can now move to any valid point on the board