CSSLab / maia-chess

Maia is a human-like neural network chess engine trained on millions of human games.
https://maiachess.com
GNU General Public License v3.0
963 stars 121 forks source link

Hello, I am trying to implement maia-chess to my game: #49

Open Descartador opened 1 year ago

Descartador commented 1 year ago

I am developing an educative game about chess and my idea was to present characters that play more human-like. I am using Ren'py on MAC but I am unsure how to go about implementing maia-chess to the game, any suggestions on how to go about this in a smart way?

Thank you!

reidmcy commented 1 year ago

In the code for the paper we used python chess with lc0, see here: https://github.com/CSSLab/maia-chess/blob/master/move_prediction/maia_chess_backend/model_loader.py. There is a slightly better version in the newer repo: https://github.com/CSSLab/maia-chess/blob/master/move_prediction/maia_chess_backend/model_loader.py, but if you want it to not rely on subprocesses you'll want to use something based on the original TF code from either our releases our the Leela training code https://github.com/LeelaChessZero/lczero-training.