|
|
|
|
|
|
|
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: |
|
|
|
| Offense | a | b | c | d | | Defense | | a | 4 | 0 | 2 | 1 | | b | 0 | 4 | 2 | 1 | | c | 2 | 2 | 4 | 0 | | d | 2 | 2 | 0 | 4 |
|
|
|