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

How to use with python-chess #22

Open FirePlank opened 3 years ago

FirePlank commented 3 years ago

So there are practically no instructions except one line telling you can use it with python-chess but I am not entirely sure how to do so. furthermore, it says AttributeError: module 'chess' has no attribute 'uci' when importing chess.uci.

Can you please explain how I can use maia in python-chess library and make it give the moves it wants to play from a python-chess board?

Thanks

reidmcy commented 3 years ago

Python-chess uses UCI so to use the python chess UCI interface follow the "How to Run" instructions. Just make sure to set the node count to 1. Also, giving move sequences instead of single fens is important.

We used the python-chess chess.uci module which appears to have been depreciated in favour of chess.engine so if you want to use our system, which is provided for reproducibility not as library, You'll have to get an older version of python-chess, I think it was done with v0.24.2.