Next: Connections Database, Previous: Autohelper Functions, Up: Patterns
The patterns in attack.db and defense.db are used to assist the
tactical reading in finding moves that attacks or defends worms. The
matching is performed during make_worms()
, at the time when the
tactical status of all worms is decided. None of the classes described
above are useful in these databases, instead we have two other
classes.
worm[m][n].attack_code != 0
), the move at `*' is
tried. If it is found to defend the stone, this is registered as a
reason for the move `*' and the defense point of the worm is set to
`*'.
Furthermore, `A' patterns can only be used in attack.db and `D' patterns only in defense.db. Unclassified patterns may appear in these databases, but then they must work through actions to be effective.