Problem 44769. Lights Out 14 - 5x5, four stages, x moves
Lights Out is a logic game wherein all lights need to be turned off to complete each board. See the first problem in the series for an introduction and problem 12 for an explanation of three stages.
This problem contains boards that each require any number of moves to solve. In addition, lights are now activated through four stages: on1 (1) to on2 (2) to on3 (3) to off (0). For example, if
board = [1 1 0 0 3 1 0 0 3 3 0 0 0 0 3 0 0 2 0 0 0 2 2 2 0]
the answer is:
moves = [1 1 1 15 15 22]
Up to three moves are possible for each button (index).
Prev.: 5x5, 3 stages, x moves — Next: 5x5, broken buttons I.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
1962 Solvers
-
Remove the small words from a list of words.
1521 Solvers
-
655 Solvers
-
Circular Primes (based on Project Euler, problem 35)
564 Solvers
-
322 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!