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_s lr_e al_e al_e le_e pa_w lr_e fl_n lr_w fl_s ri_e pa_w ____ pa_n ri_n ____ ____ al_e la_w sa_s le_w ____ la_n la_e fl_w ____ wa_s fl_e ____ rr_e wa_s rr_n ____ rr_s ____ sa_w lr_s ____ pa_e lr_w ____ ____ fl_w pa_n rr_w pa_n wa_w rr_e ri_w ____ la_n rr_w lr_s al_s pa_n sa_e ____ ri_s ____ rr_e lr_s ri_e la_e lr_e Round 1 Creature (flytrap north 0 7) takes action: left Creature (rrover south 4 1) takes action: hop Creature (path_finder north 1 5) takes action: left Creature (flytrap west 5 2) takes action: infect Creature (rrover west 5 4) takes action: infect Creature (path_finder east 4 6) takes action: left Creature (path_finder north 6 6) takes action: left Creature (landmine north 6 2) takes action: infect Creature (wall_turner south 3 2) takes action: hop Creature (same_turner west 4 3) takes action: hop Creature (same_turner south 2 3) takes action: hop Creature (rrover east 5 7) takes action: right Creature (alt_rover east 2 1) takes action: infect Creature (lrover south 6 4)