ofeksadlo / lichess-cheat

Simple chess cheat for lichess based on opencv.
19 stars 14 forks source link

new issue #5

Open Viktordotcom opened 3 years ago

Viktordotcom commented 3 years ago

Read the readme and installed everything as indicated, stockfish downloaded from the website and installed in the same dir with the main.py I run the script using PyCharm and after typing my letter (w or b to indicate the color I am playing with) I get this error message:

C:\Users\Unknown\AppData\Local\Programs\Python\Python39\python.exe C:/Users/Unknown/Downloads/stockfish_12_win_x64/main.py pygame 2.0.0 (SDL 2.0.12, python 3.9.1) Hello from the pygame community. https://www.pygame.org/contribute.html Enter your starting color (b = black / w = white): w Traceback (most recent call last): File "C:\Users\Unknown\Downloads\stockfish_12_win_x64\main.py", line 363, in clientsMove += getCellFromPos(waitForClick(), playerColor) NameError: name 'clientsMove' is not defined

Process finished with exit code 1

I don't understand what it means by "clientsMove is not defined"?? how should I define it?

ofeksadlo commented 3 years ago

Well I'm not completely sure it relates to your python version which is 3.9.1 And I only tested it on 3.7.7 although the exception that occurred to you was very simple. And I've fixed it with just declaring clientsMove outside of the while loop. I suspect though more problems will happen to you due to the difference of the python versions. So I recommend you to downgrade to 3.7.7 and redownload the repository. And don't run it with pycharm.

Let me know if you anymore problems.