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

RHE_THS's Comments

Back to RHE_THS's profile

You might want trying just to make a loop out of this so you only have one addObject line. Or, you might consider putting "new Bird()" in place of the "bird" (and therefore removing the line where you declare bird) since bird applies to only 1 of them.
first of all, you have to manually add the objects into your world class. We can't interactively add them when you export the scenario to Greenfoot Gallery. Also, getRandomNumber generates a random integer between 0 (inclusive) and your number (exclusive). so if we suppose that we have *random* assigned to the random number, you could make a loop that repeats *random* number of times and places an object into the world each time. If your increment for getRandomNumber is small, it might get the same random number 2 times in a row, making it seem like you are using the same number as before. Making your source code available would be much better so I can see where your code needs editing. Hope this helps!
In order to add objects, you must manually write the code into your world's constructor. We can not create new objects ourselves when the file is uploaded to greenfoot gallery. For example, in the constructor class in the world, use the method addObject to add a new object in.
RHE_THSRHE_THS

2008/12/15

Basically, since you go first, you place down 5 chips, and there is no way to position them in a non-winning way. Good job =)
I won...
It's a good idea, but might want to change it so it doesn't stop simulation every time.
RHE_THSRHE_THS

2008/11/20

Maybe I'm just lucky, but I got it on my first try.
I like it! Reminds me of an old game i used to play called chip's challenge!
This is really nice! Great effects and audio and nice idea! (Level 2 lol....)