i don't think i have ever write much on this subject.
briefly, if you want to write a tactic, you have to create a class with 3 functions :
_init_ : declare class variable
Evaluate: gives back a number which help to choose between tactics : the higher the number, the more chance this tactic is choosen. in fact a bot may have many (all?) tactics, each time it has to do something (probably on each tick) the evaluate function is called for each bot's tactic, the best one is keept.
Execute : What to currently do if this tactic is choosen.
- The tactic may be define in the file tactics.py or inside your own AI.
see the file tactics.py to learn more about .
typically, a useful tactic should be one which evalutes its current win-point and the one of the other bots, and if it wins with more than 1000 pt, it tries to avoid combat