lightsout: Implementation of the 'Lights Out' Puzzle Game

Lights Out is a puzzle game consisting of a grid of lights that are either on or off. Pressing any light will toggle it and its adjacent lights. The goal of the game is to switch all the lights off. This package provides an interface to play the game on different board sizes, both through the command line or with a visual application. Puzzles can also be solved using the automatic solver included. View a demo online at

Install the latest version of this package by entering the following in R:
AuthorDean Attali [aut, cre]
Date of publication2016-07-26 12:09:35
MaintainerDean Attali <>
LicenseMIT + file LICENSE

View on CRAN

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.