Skip to content

FreekCool/chess-engine-online

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chess-engine-online

Web implementation of this chess engine

This project uses ONNX model instead of PyTorch model to make possible running the engine on the web. Although the model operates on the CPU since utilizeing CUDA cores for acceleration on the web is not feasible the performance remains sufficiently high to ensure an enjoyable gaming experience.

You can try this game here

Setup:

To run this project you should make this steps:

  1. Clone this repository
  2. Add your models (.pth files of PyTorch models) to the models folder
  3. Install all requirements with pip install -r requirements.txt in utils folder
  4. Run the script python convertTrch2Onnx.py to convert the models to .onnx format

Running the project:

  1. Install all dependencies with npm install
  2. Run the project with npm start
  3. You are ready to go! Use AutoPlay button to make engine play for you and flip board button to change the board orientation. At the end of the game you can copy pgn of your game to then analyze it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.7%
  • Python 20.3%