IOKernel / Sangatsu

A barebone chess.com cheat
3 stars 5 forks source link

Engine stopped detecting end of the game #13

Open kusayuzayushko opened 1 year ago

kusayuzayushko commented 1 year ago

image image

IOKernel commented 1 year ago

I haven't been able to replicate this in the 3 matches I tried, it can detect end of game for me. I will check some more over the weekend and fix

kusayuzayushko commented 1 year ago

Reinstalled the Sangatsu, registered new account and played two games - first one worked just fine, second one stuck at the end again so it's not an HTML, right? I also have issues with the initial login when i start the sangatsu - internet is kinda slow so loading takes time (5-10+ seconds, i guess) and 2 out of 3 times I'm ending up getting "play live" page, but I'm not logged in. May it be related?

IOKernel commented 1 year ago

For the sign-in issue, you can edit line 96 in utils/helpers.py

time.sleep(8)

and increase the sleep after login to like 15 seconds

IOKernel commented 1 year ago

For the game it failed detect the ending of, were you playing white or black?
Did it end in checkmate or resignation?

kusayuzayushko commented 1 year ago

first game: played as white, won by checkmate. second game: played as black, won by resignation, game stuck

SolsticeSpectrum commented 1 year ago

Same issue. It might be problem with resignations.

kusayuzayushko commented 1 year ago

The only games Sangatsu detects are checkmates. Not sure about repetitions, has anyone got them yet? EDIT: Ended by time games are not detected as well.

IOKernel commented 1 year ago

The resignation issue is fixed, it detects game end state by checking the move-list. Draws don't add results to the move-list so they're still not detected

SolsticeSpectrum commented 1 year ago

The resignation issue is fixed, it detects game end state by checking the move-list. Draws don't add results to the move-list so they're still not detected

It also doesn't recognize auto-abort that happens on bullets when opponent doesn't make a move