This API does one thing only: it takes a chess game and returns the best next move. This project will grow, but for now it is intended to be a REST API to interface with the Stockfish chess engine.
Name | Description | Required |
---|---|---|
STOCKFISH_PATH | The path to call Stockfish from the terminal. | True, if Stockfish is not available globally. |
- Ensure python and pip are installed on your machine.
- Ensure Stockfish is installed on your machine.
- Ensure the environment variables are set up as needed.
- Install python dependencies by running
pip install -r requirements.txt
- Run
uvicorn main:app --reload
to run the project.
- Run
docker build -t chess-api .
- Run
docker run -p 8000:8000 chess-api
ensuring the port is exposed.
With this application running, go to /docs
in your browser to see how to use this API.