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 http://daattali.com/shiny/lightsout/.

Author
Dean Attali [aut, cre]
Date of publication
2016-07-26 12:09:35
Maintainer
Dean Attali <daattali@gmail.com>
License
MIT + file LICENSE
Version
0.3
URLs

View on CRAN

Man pages

board_classic
Is the board using classic game mode?
board_entries
Get the board entries (configuration of the lights)
board_entries-set
Set the board entries
board_size
Get the board size (number of rows/columns)
board_toggle_matrix
Get the toggle matrix used to solve the board using linear...
empty_board
Initialize a Lights Out board with all lights switched off
grapes-greater-than-grapes
magrittr forward-pipe operator
is_solvable
Is a given Lights Out board solvable?
is_solved
Is the given board is a solved state?
launch
Run the graphical interface to the game in a web browser
lightsout
lightsout package - Implementation of the 'Lights Out' Puzzle...
new_board
Initialize a Lights Out board with a given lights...
play
Play (press) a single light or multiple lights on a board
print.lightsout
Print a lightsout board
print.lightsout_solution
Print a lightsout board solution
random_board
Create a random (but solvable) Lights Out board
solve_board
Solve a Lights Out board

Files in this package

lightsout
lightsout/inst
lightsout/inst/img
lightsout/inst/img/shinyapp.png
lightsout/inst/shiny
lightsout/inst/shiny/ui.R
lightsout/inst/shiny/server.R
lightsout/inst/shiny/www
lightsout/inst/shiny/www/favicon.ico
lightsout/inst/shiny/www/style.css
lightsout/inst/shiny/global.R
lightsout/inst/doc
lightsout/inst/doc/overview.R
lightsout/inst/doc/overview.html
lightsout/inst/doc/overview.Rmd
lightsout/tests
lightsout/tests/testthat.R
lightsout/tests/testthat
lightsout/tests/testthat/test-utils.R
lightsout/tests/testthat/test-solve.R
lightsout/tests/testthat/test-board.R
lightsout/tests/testthat/test-play.R
lightsout/tests/testthat/test-board-attribs.R
lightsout/NAMESPACE
lightsout/NEWS.md
lightsout/R
lightsout/R/utils.R
lightsout/R/board.R
lightsout/R/pipe.R
lightsout/R/launch.R
lightsout/R/play.R
lightsout/R/board-attribs.R
lightsout/R/lightsout.R
lightsout/R/solve.R
lightsout/R/ignoreme.R
lightsout/vignettes
lightsout/vignettes/overview.Rmd
lightsout/README.md
lightsout/MD5
lightsout/build
lightsout/build/vignette.rds
lightsout/DESCRIPTION
lightsout/man
lightsout/man/launch.Rd
lightsout/man/board_entries.Rd
lightsout/man/print.lightsout.Rd
lightsout/man/grapes-greater-than-grapes.Rd
lightsout/man/board_size.Rd
lightsout/man/is_solvable.Rd
lightsout/man/new_board.Rd
lightsout/man/board_entries-set.Rd
lightsout/man/board_classic.Rd
lightsout/man/print.lightsout_solution.Rd
lightsout/man/empty_board.Rd
lightsout/man/play.Rd
lightsout/man/random_board.Rd
lightsout/man/solve_board.Rd
lightsout/man/lightsout.Rd
lightsout/man/is_solved.Rd
lightsout/man/board_toggle_matrix.Rd
lightsout/LICENSE