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

2013/5/21

Greeps Tips

bogaboy bogaboy

2013/5/21

#
I am doing Greeps just for fun, and not part of a competition, but I can't figure something out. My greeps carrying tomatoes always get stuck on water. How can I fix this?
bourne bourne

2013/5/21

#
Do something when atWater() returns true.
bogaboy bogaboy

2013/5/21

#
I did. Here is a my act method. Redacted by admin. Please do not post Greeps code or discuss Greeps strategies publicly! Thanks.
davmac davmac

2013/5/22

#
Regardless of whether it's just for fun or part of a competition, we discourage posting about Greeps because it is used in classroom competitions and we don't want code or even ideas to be available. The idea with Greeps is that it's a solo exercise - you think about how to adjust the Greep behavior yourself. Follow the logic in your own code. What happens when a Greep carrying a tomato hits the edge of a body of water? How does it react? What direction is it facing after act() is called? What will happen when act() is called again? How can you improve this? I've removed the code from your post above. Again, please don't post Greeps code or strategies publicly.
You need to login to post a reply.