ofeksadlo / lichess-cheat

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

hello #9

Open tutaj123 opened 3 years ago

tutaj123 commented 3 years ago

Hello. Sorry to bother you but I don't have any idea how to run this program. Could you help me with that and guide me step by step?

ofeksadlo commented 3 years ago

Follow this guidelines:

1) Open up a game while logged in to lichess (Playing as anonymous will change the board size and mess everything Also it's only tested on chrome and on 100% zoom while logged in). 2) During the freeze time open up the program choose your starting color. And alt+tab back to the browser (Don't use your mouse). Keep in mind that your mouse clicks from that moment matters. So play like that: 1 click represent the from cell and 1 click represent the to cell when it's your turn. No dragging pieces. No checking youtube for a second It will mess everything and the program will crash

Keep in mind that lichess would most definitely ban you for using this against real players. So I suggest you to test against bots to learn in the process.

tutaj123 commented 3 years ago

Thanks, but I'm having problems with changing the path to the stockfish engine exe file. Could you tell me how to do it?

tutaj123 commented 3 years ago

There are 9 warnings. I'm also unable to run the program. The warnings are: unresolved import for: win32api, pygame, pyautogui, numpy, stockfish, pynput.mouse.

ofeksadlo commented 3 years ago

Did you installed the requirements?

tutaj123 commented 3 years ago

Oh, wait. It says "Use pip install -r requirements.txt". Wait a moment

tutaj123 commented 3 years ago

Ok, I've just installed all the requirements. There are no warnings now. Could you tell me where and how should I run the code?

tutaj123 commented 3 years ago

Oh, wait. There's one problem.

import cv2, win32gui, win32con, win32api, pygame, os ModuleNotFoundError: No module named 'cv2'

When I run the code, CMD appears and that's what it says.

ofeksadlo commented 3 years ago

Oh, wait. There's one problem.

import cv2, win32gui, win32con, win32api, pygame, os ModuleNotFoundError: No module named 'cv2'

When I run the code, CMD appears and that's what it says.

One of the requirements is opencv-python which is the module cv2. So you didn't installed that one. Check which python version you are using. I only tested it on python 3.7.7 And don't use any IDE such as PyCharm.

I'm guessing you are a beginner at python and that is ok to learn. But if you came only to cheat you'll have a hard time making this project work because it ain't finish yet.

And honestly I lack the will to make it user-friendly. So non-programmers won't exploit an easy to use cheat.