An efficient chess AI agent for the FIDE & Google Kaggle competition.
https://www.kaggle.com/competitions/fide-google-efficiency-chess-ai-challenge
- Resource-efficient chess engine (< 5 MiB RAM, single 2.20GHz CPU core)
- Minimax search with alpha-beta pruning
- Iterative deepening with time management
- Basic evaluation function including:
- Material balance
- Piece-square tables
- Mobility evaluation
- Python 3.7+
- python-chess
- numpy
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
The agent can be used directly with the Kaggle competition framework. The main entry point is the agent()
function in main.py
.
The chess engine implements several key features:
- Search Algorithm: Minimax with alpha-beta pruning and iterative deepening
- Evaluation Function:
- Material counting
- Basic positional evaluation using piece-square tables
- Mobility evaluation
- Time Management: Conservative time usage with early stopping
This implementation adheres to the competition constraints:
- 5 MiB RAM limit
- Single 2.20GHz CPU core
- 64KiB compressed submission size limit
- 10s with 0.1s Simple Delay time control