Example

This traces out several rounds of communication in a WormWorld using

Input file: i1d

I strongly suggest you follow through and understand why the board looks as it does after each round.

before communication (your moves in brown) after
g 10 10 12 5
r 3 2 4
d 2 8 3
o 3 6
s 5 5 N
m 0
F     ← try to move forward 
k 0   ← it worked! 
m 1
F     ← try to move forward 
k 2   ← it failed! Hit a wall! 
m 2
R     ← try right turn and step 
k 0   ← it worked! 
m 3
L     ← try left turn and step 
k 1   ← it worked, and I got food! 
x 3 6 ← food at 3,6 is gone! 
m 4
L     ← try left turn and step 
k 2   ← it failed! However, I am now facing W 
m 5
R     ← try right turn and step 
k 0   ← it worked!