Hearthranger - How to setup bot to play around AOE cards in vision a.i. ?

 

Presume.json is a json config file to setup bot to play around opponent's AOE cards.

 

You can write your own Presume.json to presume opponent's hand card.

 

This file only take effect when SecondTurnValueWeight in GlobalValues is not zero, since bot can only simulate opponent's action in second turn.

 

 

Presume.json

 

A sample:

 

{

         "GameCardId":"Presume",    

         "ConfigComment":"This file setup opponent's hand card.",

        

                  "PresumeOppInHandCard":

                   {

                                                       "values":

                                                       [

                                                                    {                                                  

                                                                        "comment":"aoe card presume for mage - presume opp has flamestrike from turn 6, and only has one flamestrike in (deck + hand) (value=1)",              

                                                                             "condition": "opp_hero(count(),mage=true) > 0 AND my_hero(turn()) >= 6",

                                                                             "inhand":"CS2_032",

                                                                             "value":"1",

                                                                    }

                                                       ],

                                                     },                                        

                 

}

 

The meaning of "value" is the maximum card number that opponent can have.

 

If value is 1, but opponent has played fralmestrike once, then even the condition matches, bot will not add this card to opponent's hand, since the only one card has been played by opponent.

 

To understand condition and value, please read:

 

Hearthranger - How to understand json config ?