< previous page page_189 next page >

Page 189
Z0205001.gif
Fig. 19.
A single-cell agent
If the combat condition of either agent matches the offense tag of the other, then combat is initiated. That is, combat can be initiated unilaterally by either agent. If combat is initiated, the offense tag of the first agent is matched against the defense tag of the second and a score is calculated. In the simplest case, this score is calculated on a position-by-position basis, adding the results to get a total. For example, the score for a single position could be obtained from a score matrix that is used to score the match between corresponding letters in the two tags:

Offenseabcd
Defense
a4021
b0421
c2240
d2204

 
< previous page page_189 next page >

If you like this book, buy it!