Learn R Programming

lightsout (version 0.2.1)

board_entries: Get the board entries (configuration of the lights)

Description

Get the board entries (configuration of the lights)

Usage

board_entries(board)

Arguments

board
A lightsout board object

Value

A matrix representing the current state of the lights (0 for off, 1 for on) in the board

Examples

Run this code
board <- random_board(5)
board
board_entries(board)

Run the code above in your browser using DataLab