empty_board: Initialize a Lights Out board with all lights switched off

Description Usage Arguments Value See Also Examples

View source: R/board.R

Description

Initialize a Lights Out board with all lights switched off

Usage

1
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

1

Example output

Lights Out 5x5 board
Game mode: classic 

	sh: 1: rm: Permission denied
0 0 0 0 0
	0 0 0 0 0
	0 0 0 0 0
	0 0 0 0 0
	0 0 0 0 0
	

lightsout documentation built on May 2, 2019, 1:10 p.m.