Students have requested examples of each of these methods when a "ball" reaches the edge of a world: bounce, come out the other side, and randomly appear on another wall.
To embed this scenario in a web page, copy the following HTML code:
A new version of this scenario was uploaded on Tue Dec 17 19:48:16 UTC 2013
Removed the "KKK" balls -- didn't notice it until it was pointed out! Also changed some comments and method names.
The three balls do:
♦ Blue = Bounce
♦ Red = Teleport to opposite side
♦ Yellow = Randomly start at a new edge
A new version of this scenario was uploaded on Tue Dec 17 20:32:06 UTC 2013
Added a score counter in case someone needs one. At this point it's adding one to the score every time it acts.
A new version of this scenario was uploaded on Tue Dec 17 20:48:05 UTC 2013
Added a delay for the score counter just to slow it down a bit.
2013/12/17