Love it. I can't read a word of chinese, but was able to figure out the game! Basically click a bulb on and all surrounding on bulbs turn off. Mission is to turn them all on.. Great stuff!
Just to clarify: switch a bulb on or off by clicking on it, and all the bulbs next to it, horizontally and/or vertically, switch states (from on to off, or from off to on, depending on their starting state). It is part of the all-ones collection of games, so, yes, the object is to turn them all on.
A new version of this scenario was uploaded on Tue Jun 19 18:19:34 UTC 2012
* use Color(int, int, int, int) instead of Color(float, float, float, float), for simplicity.
A new version of this scenario was uploaded on Wed Jun 20 08:12:22 UTC 2012
* Use boolean to check the lights instead of integer sum, to simplify.
* Change all the fields to private, to follow the Greenfoot book's convention.
sp33dy, danpost: Yes. And thank you for your explanation on the rules.
This scenario is intended to share with our local teachers. Sorry it is not in English. I hope you enjoy it! ^_*'
A new version of this scenario was uploaded on Fri Jun 29 18:48:52 UTC 2012
* Stopped keeping track the light bulb list. The light bulbs can be obtained from getObjects().
* Uses boolean instead of int to check if all the lights are one.
2012/6/19
2012/6/19
2012/6/20