This page gives a short tutorial on the ICE Pambush 3
if(Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill
if (Exist(gp.num_pill)) direction = as.run(gp.num_pill); // move to the closest pill
if (Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill else if (Exist(gp.num_pill)) direction = as.run(gp.num_pill); // move to the closest pill
if (Exist(gp.num_edible)) direction = as.run(gp.num_edible); // move to the edible ghost else if (Exist(gp.num_pp)) direction = as.run(gp.num_pp); // move to the closest power pill else if (Exist(gp.num_pill)) direction = as.run(gp.num_pill); // move to the closest pill