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

2014/4/11

Greeps

babygirl03 babygirl03

2014/4/11

#
Recently for my computer science class we started the Greep competition. I have made my source code and it works, but I recently made a move() method move(2); and I'm not sure if that is illegal. I messaged my teacher but he hasn't responded yet, the assignment is due tonight so I needed to know if I was breaking a rule by that. Thank you for your help!
danpost danpost

2014/4/11

#
You can use it. However the Creature class will ignore the argument and no change will occur in the speed of the greep. Use 'move()', 'move(1)', or 'move(5)'; it will not matter. I suggest you just use 'move()' -- it will not make it look like you were trying to cheat (whether you were or not).
You need to login to post a reply.