Mar 31, 2011

March 31 2011

Stupid Crabs. They don't even know when food is in front of them.
So I worked more with Greenfoot, I actually got a lot done. I was working in chapter 3.3 and I was supposed to to make the crab eat the worm. At first when I read the book it asked me to open the animal class to check if the statements were true. They were. Then it asked me to put a code into the source code view. I thought it wanted me to put the code in the animal class, so that's where I put it.


But then whenever I added a worm, the crab just walked right over it. I tried changing the code (turned out I had some extra spaces) but that didn't work either. I put had put the code in the wrong place and changed that too. So I called Mr. Daly and he told me the code needs to be put in the crab class. I did this. But it still would not work.
After about 5 minutes I figured out that by putting the code in the wrong place the first time, I messed with the one that was supposed to be there. So I opened a new file and it all worked.

No comments:

Post a Comment