A text-based checkers game implementation written in Prolog with an interactive command-line interface.
- GNU Prolog installed on your system
- Open your terminal
- Navigate to the project directory
- Run:
gprolog --consult-file checkers.pl
The game will start automatically and display the initial board.
- White pieces are represented by '●' symbols, black pieces by '○'
- Players alternate turns, with white moving first
- Regular pieces can only move forward diagonally
- Capturing opponent pieces is mandatory when possible
- Pieces become kings (♛ for white, ♚ for black) when reaching the opposite end of the board
- Kings can move in any diagonal direction
- Enter piece coordinates in the format
[row, column](e.g.,[6, 1].) - Choose movement direction:
- Type
lorleftto move left - Type
rorrightto move right
- Type
- Type
qto quit the game at any time
- Automatic game end detection when a player has no valid moves or pieces
- Highlighted movable pieces for each turn
- Mandatory capture notifications
- King promotion system
- Input validation and error handling
The game uses a standard 8x8 checkers board with coordinates:
- Rows numbered 1-8 (top to bottom)
- Columns numbered 1-8 (left to right)
- Only dark squares are used for gameplay