This site requires JavaScript, please enable it in your browser!
Greenfoot back
DoubleShoot
DoubleShoot wrote ...

2018/4/23

Greeps keep getting stuck with tomato

DoubleShoot DoubleShoot

2018/4/23

#
So my greeps continue to get stuck while they have a tomato and i'm frustrated. Anything helps
if (carryingTomato()) {
            if (atShip()) {
                dropTomato();
                
            }
            else {
                move();
                turnHome();

            }
        }
        else {
            edge();
            water();
            move();
            checkFood();

        }
        if(carryingTomato())
        {
            turn(5);
            turnHome();

        }
    }
danpost danpost

2018/4/23

#
The Greeps scenario is used in competitions and no Greeps coding should be shown here. @davmac, do your dirty-work.
You need to login to post a reply.