A simple chess engine and web interface using minimax search and a classic evaluation function, built with Python and Flask. This is adapted from [https://github.com/geohot/twitchchess]. Shout out to the man who never sells out :).
- Chess engine using minimax with alpha-beta pruning and a basic evaluation function (material + mobility).
- Web interface to play against the engine in your browser.
- Self-play mode for engine vs. engine games.
- Move input via algebraic notation or board coordinates.
- SVG board rendering for visualizing games.
- Python 3.7+
- python-chess
- Flask
- numpy (for some state serialization)
- Pytorch
Install dependencies with:
pip install flask python-chess numpy torchpython play.py[https://github.com/geohot/twitchchess] [https://lumbrasgigabase.com/en/download-in-pgn-format-en/] - For data to train.