Learn R Programming

lightsout (version 0.3.2)

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

Description

Get the board entries (configuration of the lights)

Usage

board_entries(board)

Value

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

Arguments

board

A lightsout board object

Examples

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

Run the code above in your browser using DataLab