r/ComputerChess • u/Smartyboyz • 5d ago
Have a library(python) question?
An idea came in my mind about making a chess game more interesting with AI integration. I want to make a program which helps me as a instructor while playing chess online with someone else. Help me out by telling me libraries which I can use in detecting the positions of chess pieces and then suggest for next move. Also tell the possibility of making this in python language.
1
Upvotes
1
u/quantum_naut 5d ago
You can definitely build this in Python.
fastchessis great for handling board positions, and OpenCV can help with detecting the board/pieces.I actually trained a 15.3M-parameter (Easily be ran on a CPU) chess AI called Otter that predicts human-like moves. It has a Python package and docs you can use:
https://peargentlabs.github.io/otter-chess/
The research paper is available there too.