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

2015/3/20

Greeps Competition Question

justdal justdal

2015/3/20

#
I recently started the Greeps Competition and I have a question about the methods my greep can "see". Am I allowed to, for example:
Actor pile = getOneIntersectingObject( TomatoPile.class);
if (  pile ) != null ) 
{
    pile.getX();
    pile.getY();
}
Is this allowed because I "see" the pile or is it cheating? TY
danpost danpost

2015/3/20

#
Rule 5. No long vision. You are allowed to look at the world only at the immediate location of the Greep. Greeps are almost blind, and cannot look any further. I believe what you have above constitutes looking at the immediate location and would therefore be allowed.
You need to login to post a reply.