lightsout: Implementation of the 'Lights Out' Puzzle Game
Version 0.3

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/.

AuthorDean Attali [aut, cre]
Date of publication2016-07-26 12:09:35
MaintainerDean Attali <daattali@gmail.com>
LicenseMIT + file LICENSE
Version0.3
URL https://github.com/daattali/lightsout
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("lightsout")

Getting started

README.md
Package lightsout"

Popular man pages

is_solvable: Is a given Lights Out board solvable?
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...
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
See all...

All man pages Function index File listing

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

Functions

\%>\% Man page
board_classic Man page Source code
board_entries Man page Source code
board_entries<- Man page
board_size Man page Source code
board_toggle_matrix Man page Source code
empty_board Man page Source code
generate_lightsout_matrix Source code
is_solvable Man page Source code
is_solved Man page Source code
launch Man page Source code
lightsout Man page
lightsout-package Man page
nevercalled Source code
new_board Man page Source code
play Man page Source code
play_helper Source code
position_1d_to_2d Source code
print.lightsout Man page Source code
print.lightsout_solution Man page Source code
random_board Man page Source code
solve_board Man page Source code
solve_helper Source code

Files

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

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

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