Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with python-chess #22

Open
FirePlank opened this issue Mar 7, 2021 · 1 comment
Open

How to use with python-chess #22

FirePlank opened this issue Mar 7, 2021 · 1 comment

Comments

@FirePlank
Copy link

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
Copy link
Member

reidmcy commented Mar 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants