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

2011/12/1

NEED HELP!!!

jeffsboosted18t jeffsboosted18t

2011/12/1

#
Really need help with 3 through 6. Little Crab book scenario. 1. Automatically populate the world with 50 Worms and 5 Crabs, all randomly placed. 2. Set the initial worms eaten (on the Crabs) to a random number between 10 and 20. 3. If a Crab has eaten 10 or more Worms, it cannot eat any more Worms. 4. If a Crab has eaten less than 10 Worms, it can continue eating more Worms. 5. Each time a Crab moves, it uses 1/40 of a Worm worth of energy. 6. Once a Crab has reached zero Worms eaten, it dies and disappears from the world. 7. The Crabs shall move in a random pattern and eat Worms. 8. The Worms shall pop in and out of their holes in a randomly realistic manner.
davmac davmac

2011/12/1

#
Starting with 3., what have you tried so far? Is it that you have no idea how to proceed at all, or have you tried something unsuccessfully?
You need to login to post a reply.