fishtank/Mechanics/flow-6.graph

21 lines
1.0 KiB
Plaintext

[ START ] --> [ damage? ]
[ Anyone know where food is? ] <-- me! --> [ We go to food! ]
[ Anyone know where food is? ] -- someone? --> [ I follow them ]
[ Anyone know where food is? ] -- nobody... --> [ Do I see someone bigger than me? ]
[ Do I see someone bigger than me? ] -- No --> [ howl! ]
[ Do I see someone bigger than me? ] -- Yes --> [ silence ]
[ silence ], [ howl! ] --> [ listen ]
[ listen ] -- one howl --> [ we follow, you lead ]
[ listen ] -- some howls --> [ howlers fight (one punch only) ]
[ listen ] -- no howls --> [ (unreachable state) RUN AWAY! ]
[ howlers fight (one punch only) ] --> [ Do I see someone bigger than me? ]
[ damage? ] -- yes --> [ run opposite way! ]
[ damage? ] -- no --> [ am I alone? ]
[ am I alone? ] -- yes --> [ food? ]
[ am I alone? ] -- no --> [ Anyone know where food is? ]
[ food? ] -- here --> [ eat ]
[ eat ] -- X=1 --> [ food? ]
[ food? ] -- near --> [ move to food ]
[ food? ] -- no --> [ move X squares in random direction ]
[ move X squares in random direction ] -- increase-X --> [ food? ]