For example, the following situation:
E1 E2 (enemy minions)
......................................
B C (my minions)
//////////////////////////////
A (in hand)
if bot calculated card to be played like:
A->BattleField, A->B (A use battlecry on B) , BxE1 (B attack E1)
But you want to A set battlecry on C, then you can add a rule like:
A 10 GAIN FOR TARGET my battlefield has card named $(C)
and if you want to attack E2 instead of E1, you can add a rule like:
Any Card 10 GAIN FOR TARGET enemy battlefield has card named $(E2)
The gain value can be roughly calculated as target's attack+health
Sorry we're lack of tutorials, I'll add more samples in the near future.