Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

board_toggle_matrix

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 lightsout board object


lightsout

Implementation of the 'Lights Out' Puzzle Game

v0.3
MIT + file LICENSE
Authors
Dean Attali [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.