9 lines
327 B
Plaintext
9 lines
327 B
Plaintext
[ START ] --> [ damage? ]
|
|
[ damage? ] -- yes --> [ run opposite way! ]
|
|
[ damage? ] -- no --> [ food? ]
|
|
[ 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? ]
|