Mathematica 9 is now available

Wolfram Library Archive

All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

Lights Out Palette Demonstration

Rob Raguet-Schofield
Organization: Wolfram Research, Inc.
Department: User Interface Group

A simple game written with Mathematica, showing how palettes can be made interactive. The game board consists of a 5x5 grid of "lights," each of which is on (red) or off (blue). By pressing a light, the state of that light toggles, as do the states of the lights immediately above, below, to the left, and to the right of it. The point of the game is to get all of the lights off (blue).

*Mathematica Technology > Front End > Palettes and Dialog Boxes
*Mathematics > Recreational Mathematics

Palette, interactive
Related items

*The Lights Out Puzzle   [in Articles]
Downloads Download Wolfram CDF Player

LightsOn.nb (22.6 KB) - Notebook with interactive palette