Turn Off the Lights

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

The purpose of this little game is to turn off all the lights. But the situation is a little bit more complicated than usual: if you press a button, the corresponding light and its two neighbors change their state. How many attempts do you need to turn off all lights?

Contributed by: Edda Eich-Soellner (University of Applied Sciences, Munich, Germany) (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

Hint: it is possible to turn off all the lights with at most seven clicks.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send