maia-chess icon indicating copy to clipboard operation
maia-chess copied to clipboard

How to use with python-chess

Open FirePlank opened this issue 4 years ago • 1 comments

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

FirePlank avatar Mar 07 '21 19:03 FirePlank

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.

reidmcy avatar Mar 09 '21 23:03 reidmcy