Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Don't pause to recalculate between actions with no random outcomes
flyingfree333
#1 Posted : Friday, December 18, 2015 5:41:27 AM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 66
Location: Canada

Was thanked: 7 time(s) in 7 post(s)
The predictable pause between each action the bot does makes it very easy to spot. If the action has no random outcome or triggered effects, like attacking face when no secrets are in play, don't do the action, add it to an action queue and calculate the next action, run the action queue only when there are no more actions to take or the latest calculated action will result in some kind of random effect. Basically the logic is like this:

  1. Loop Start
  2. Calculate next action and add it to action queue
  3. If last action in queue will result in any random effects OR if last action in queue is end turn run action queue
  4. If last action performed was end turn end the loop
  5. Return to Loop Start
  6. Wait for next turn

This will result in smoother gameplay and the bot will be less obvious since it will more resemble the actions of a real person.
1 user thanked flyingfree333 for this useful post.
fioufiouw on 1/4/2016(UTC)
jcbgr
#2 Posted : Friday, December 18, 2015 8:52:17 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 3
Man
Location: Greece

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
I am not so into programming nor into deep game knowledge but if there are few rng factors (secrets, minions with chance of hitting wrong enemies etc) there can be made a way of calculating the board once and then playing all the mionions/spells and not calculate after every move.
Skynet will take over one day...
JoyAdmin
#3 Posted : Saturday, December 19, 2015 4:50:03 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,849

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
It will be improved in next release, I'm working on it.
fioufiouw
#4 Posted : Monday, January 4, 2016 8:08:28 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 4
Location: Paris

Thanks: 29 times
Nice suggestion i like it :)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.075 seconds.