|
This small section from my 1983 programming notes shows
the flowcharts and assembly language source code
segments used to implement the "automated intelligence"
features of Dog Daze Deluxe. When you play against the
computer, the computer takes control of the other dog
and shows human behavior (to the extent of my
programming ability). For example, when a new blue
hydrant pops up, the computer-controlled dog must decide
whether to run vertically or horizonally, based on
getting a "clear shot" with the bone in the desired
direction. While running to the desired spot, the dog
must also navigate around any hydrants owned by the
opponent. The dog also has to make a mistake once in
awhile, and "accidentally" bump into an opponent's
hydrant. |
57 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
variables |