HearthstoneBot icon indicating copy to clipboard operation
HearthstoneBot copied to clipboard

Delay between actions

Open pgrimaud opened this issue 10 years ago • 3 comments

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?

pgrimaud avatar Mar 18 '14 13:03 pgrimaud

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.

ghost avatar Mar 18 '14 23:03 ghost

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?

pgrimaud avatar Mar 19 '14 10:03 pgrimaud

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 :)

ghost avatar Mar 19 '14 11:03 ghost