Might Sand Yak! and Oasis, should have restriction on flags.
Instead of coding a solution on the method it suggests, I can simply create a method to manually dodge the Yaks (Mighty Sand Yak!) or have the hero cross the road to the Oasis (Oasis).
/loop{
flag = this.findFlag(“green”);
if (flag){
position = flag.pos;
x = position.x;
y = position.y;
this.moveXY(x, y);
this.pickUpFlag(flag);
}
}/
Unfortunately the flags will not be allowed anymore, the code for just following the flag could be small:
loop{
var flag = this.findFlag();
if (flag) {
this.pickUpFlag(flag);
}
}