This repo contains code for a chess platform built with chessboard.js, python-chess && flask microframework.
- Play against stockfish engine as a second player.
- See game moves in a pretty formatted table. (Standard Algebraic Notation).
- Reset the game whenever you want.
- Undo and redo your moves.
- Clone/fork this repository.
git clone https://github.com/omega-coder/flask-chess-platform.git
- Install requirements.
python3 -m pip install -r requirements.txt
-
Install stockfish engine in your system.
1. download engine from stockfish Download.
2. For linux users, extract and move engine binary to/usr/bin
.
3. change the engine path in Player2 class
python self.__engine = chess.engine.SimpleEngine.popen_uci("/usr/bin/stockfish")
-
Run app.py
python3 app.py
- Go to http://127.0.0.1:1337
- Add game time to fontend and synchronize with backend time
- recognize engines automatically.
- Allow users to add engine from fontend.
- Allow user to choose sides.
- Make board Analysis possible (using ECO).