HearthstoneBot
HearthstoneBot copied to clipboard
Delay between actions
You said the bot plays faster.
Maybe we can set a random delay at the start of our turn. Between 3 and 6 seconds? And set this random delay between all actions?
It should be playing somewhat faster, because I eliminated a static delay of 200msec on each invokation.
Why would you want a random delay? - There's currently a delay of 2 seconds after throwing cards or attacking. The AI itself will run at full speed in between these events.
I want a random delay, to avoid a ban. If someone report you for botting, they will investigate your account. And if they find that you play faster than the light, they will have no doubt.
Maybe the delay between 3 and 6 seconds was a little bit too long. Maybe between 1500 ms & 3000 ms?
The bot does not play faster than light at all, with the current delays. I think it plays at a reasonable pace. Also even if the delay is 2 seconds sharp, then latencies will place it around 2 seconds at server side. I will consider making a random sleep between intervals tho :)