chess-auto-bot icon indicating copy to clipboard operation
chess-auto-bot copied to clipboard

Stop bot from choosing threefold repetition moves if it has advantage against opponents

Open segahen opened this issue 2 years ago • 10 comments

Like title says, is there a way we can force the bot to choose another move in order stop it from drawing by threefold rep? i got matches where i was like +8 and above and still lose by threefold rep moves

segahen avatar Jan 14 '23 02:01 segahen

I'll look into this today, I think I can fix this issue. I'll keep you updated.

xHeaven avatar Jan 14 '23 03:01 xHeaven

@xHeaven thank you, nice to see you as a new contributor :D Also sometime when im in mouseless mode in the middle of the auto, the bot stops and i have to start again, i will send the log here later if it happens again

segahen avatar Jan 14 '23 04:01 segahen

@xHeaven thank you, nice to see you as a new contributor :D Also sometime when im in mouseless mode in the middle of the auto, the bot stops and i have to start again, i will send the log here later if it happens again

Hello @segahen, I think the second issue you mentioned is a duplicate of https://github.com/PanagiotisIatrou/chess-auto-bot/issues/10. Do you also notice the illegal move errors on the console when the bot stops?

PanagiotisIatrou avatar Jan 14 '23 11:01 PanagiotisIatrou

Opened a PR to solve the Threefold Repetition issue: https://github.com/PanagiotisIatrou/chess-auto-bot/pull/18 Let me know when you can update us about the logs related to the bot stopping.

xHeaven avatar Jan 14 '23 16:01 xHeaven

the threefold problem is solved, im happy with it. About the bug, i havent got it today so i dont know yet but i will post once i see

segahen avatar Jan 15 '23 05:01 segahen

the threefold problem is solved, im happy with it. About the bug, i havent got it today so i dont know yet but i will post once i see

Have you solved it with the PR I made or you found another approach? As for the bug, thanks in advance.

xHeaven avatar Jan 15 '23 15:01 xHeaven

Yes i used your PR and solve it, now it only draw with insuffi materials, which is perfect to me.

segahen avatar Jan 15 '23 23:01 segahen

Hello @segahen. Could you maybe share a game or two when the bot chose to repeat in a winning position? Perhaps a link or the PGN. I think it would really help to investigate more on this issue.

PanagiotisIatrou avatar Jan 27 '23 18:01 PanagiotisIatrou

@PanagiotisIatrou Heaven made a 3 fold check so the problem fixed :) no worry about this

segahen avatar Jan 28 '23 00:01 segahen

Here is a good example that i encounterd today, i was up 4 points and could have easily trade the rook with the enemy but the bot or stockfish decided to repeat the same moves and ended up 3fold rep. @PanagiotisIatrou 3fold.txt

segahen avatar Feb 02 '23 11:02 segahen