empty_board {lightsout}R Documentation

Initialize a Lights Out board with all lights switched off

Description

Initialize a Lights Out board with all lights switched off

Usage

empty_board(size, classic = TRUE)

Arguments

size

Number of rows and columns for the board

classic

If TRUE, then pressing a light will toggle it and its adjacent neighbours only. If FALSE, then pressing a light will toggle the entire row and column of the pressed light.

Value

A lightsout board.

See Also

random_board new_board

Examples

empty_board(5)

[Package lightsout version 0.3.2 Index]