Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is -11, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
Initial state sa_w ____ la_s fl_w al_n la_s ____ lr_s wa_w rr_n ____ fl_e rr_w wa_s le_s wa_s rr_w la_n pa_w sa_w ____ ____ lr_n ri_e wa_w le_w lr_s sa_w ____ pa_e ____ fl_n sa_n pa_w lr_e ____ ____ ____ la_s le_w ____ ____ lr_w sa_e le_s al_e le_w lr_n pa_n wa_w fl_n al_w le_n pa_n ____ lr_n le_w la_w sa_e lr_e rr_w ____ lr_n ri_e Round 1 Creature (rrover west 2 0) takes action: right Creature (lrover south 0 7) takes action: infect Creature (rrover west 7 4) takes action: infect Creature (rrover north 1 1) takes action: hop Creature (landmine north 2 1) takes action: infect Creature (flytrap north 6 2) takes action: infect Creature (lrover north 2 6) takes action: infect Creature (wall_turner south 1 5) takes action: hop Creature (lrover north 7 6) takes action: hop Creature (path_finder east 3 5) takes action: hop Creature (same_turner west 2 3) takes action: hop Creature (rrover east 7 3) takes action: right Creature (lrover north 6 7) takes action: left Creature (left west 5 6) takes action: left