Turn Off the Lights

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?

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

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

PERMANENT CITATION

    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.