

The goal of the game is to switch all the lights off. Pressing any light will toggle it and its adjacent lights. Lights Out is a puzzle game consisting of a grid of lights that are either on or off. Lightsout - Implementation of the 'Lights Out' Puzzle Game in RĬopyright 2016 Dean Attali. Knitr ::opts_chunk $ set(tidy = FALSE, comment = "#>") random_board: Create a random (but solvable) Lights Out board.print.lightsout_solution: Print a lightsout board solution.print.lightsout: Print a lightsout board.play: Play (press) a single light or multiple lights on a board.new_board: Initialize a Lights Out board with a given lights.lightsout: lightsout package - Implementation of the 'Lights Out' Puzzle.launch: Run the graphical interface to the game in a web browser.is_solved: Is the given board is a solved state?.is_solvable: Is a given Lights Out board solvable?.grapes-greater-than-grapes: magrittr forward-pipe operator.empty_board: Initialize a Lights Out board with all lights switched off.

board_toggle_matrix: Get the toggle matrix used to solve the board using linear.board_size: Get the board size (number of rows/columns).board_entries-set: Set the board entries.board_entries: Get the board entries (configuration of the lights).board_classic: Is the board using classic game mode?.
