board_toggle_matrix {lightsout} | R Documentation |
Get the toggle matrix used to solve the board using linear algebra
Description
A lightsout game can be solved using Gaussian elimination. A special matrix
A
needs to be used to solve Ax=b
, where b
is the current
board configuration and x
is the solution. This function returns
the matrix A
.
Usage
board_toggle_matrix(board)
Arguments
board |
A |
[Package lightsout version 0.3.2 Index]