Feat: Implement Random Move Delays to simulate human behavior#81
Open
sght500 wants to merge 1 commit intoPanagiotisIatrou:mainfrom
Open
Feat: Implement Random Move Delays to simulate human behavior#81sght500 wants to merge 1 commit intoPanagiotisIatrou:mainfrom
sght500 wants to merge 1 commit intoPanagiotisIatrou:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Random Delays to Simulate Human Behavior
Hello! I have implemented the "Random delays in between moves" feature listed in the Future features section of the README.
The goal of this update is to make the bot's interactions with the board appear more organic, helping to simulate human behavior and reduce the likelihood of automated detection.
Changes Implemented:
1. Variable Mouse Dragging Speed:
Instead of a fixed duration for piece movement, the script now randomizes the time taken to drag a piece from the starting square to the target square.
mouse_latency - 1.0andmouse_latency + 1.0seconds.2. Dynamic Thinking Time:
I added a randomized delay immediately before the bot calls
stockfish.get_best_move().mouse_latencyandmouse_latency + 2.5seconds before finalizing its move choice.Impact:
These changes provide a more realistic human-like profile regarding both Thinking Time (calculation phase) and Movement Time (execution phase). The bot now naturally slides pieces like a human player, while still allowing the user to remain in control of the average speed via the
mouse_latencysetting.Thank you for maintaining this project and for considering my contribution! I’m happy to make any adjustments if you have specific feedback on the timing ranges.
Best regards,
SGHT500