MiniChess is a compact chess variant played on a 5×6 board (5 columns, 6 rows), designed for quick gameplay and experimenting with chess AI logic.
- No Castling
- No Double Pawn Move (no en passant possible)
- Only Queen Promotion
- King Capture Ends the Game (no check/checkmate detection)
- Player vs Player
- Player vs AI (Engine)
- Minimax with Alpha-Beta Pruning
- Transposition Table for board state caching
- Move Ordering:
- Captures prioritized as using MVV-LVA
- Basic Evaluation Function
- Quiescence search for capture moves
- Python 3.13 or higher
- Required packages will be automatically installed in the steps below.
-
Clone the repository:
git clone https://github.com/Jihad011/Mini_Chess_AI_Lab.git -
Navigate to the project directory:
cd Mini_Chess_AI_Lab -
Set up a virtual environment (this will create a
venv/folder in the project directory):python -m venv venv -
Activate the virtual environment:
-
On Windows (Command Prompt):
venv\Scripts\activate
-
On Windows (PowerShell):
.\venv\Scripts\Activate.ps1
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
To launch the MiniChess application, run:
python app.py