Lights Out is a Puzzle Game.
Goal: Make all cell the same color
-
The color of the pressed cell and the color of the cell above, below, left and right are reversed
-
It is passed through about the overflowed cells
-
Let's enjoy
This game is depend on these theories:
-
Linear Algebra (Matrix)
-
Graph Theory
-
F2 Field
Solver is ./src/modules/lightsout.ts
Mechanizm:
-
Create adjacency matrix
for each cell (Unweighted undirected graph) on F2 calculation
-
*
(Current cells status) = answer vector (State of the cells to be pushed)
-
It is known that the existence of an inverse matrix is equivalent to the existence of a unique solution
-
In some cases there is no inverse matrix (ex. n=4,5,...)