> cd ChessServer
> conda create -n env_name python=3.12
> conda activate env_name
> pip install -r req-torch.txt
If the Above doesn't work then install the packages manually
> pip install numpy matplotlib pandas scikit-learn tqdm chess
> flask flask_cors
Pytorch installation (Changes from time to time) so refer the docs
> pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
> pip install lightning
Make sure you have installed the dependancies correctly
Start the server on port 8900 (this is a must!)
> python app.py
- Make sure that you have the right version of Cuda installed inside the environment. Use use the following commands to check for required informations!
> nvidia-smi
Simple Chess Server using flask, chessboard2.js and chess.js
You 2 have choices
> docker compose up --build
> virtualenv venv
> .\venv\Scripts\activate
> pip install -r requirements.txt
> flask run
Frontend made with ❣️by AMX