Memorize which cells are white when the board first loads. Tap all of those in order without regard to the way the board changes as you go. Edit: above tested for 5x5 rows&cols. For even boards it seems there’s a small end-game to repeat the process — something about parity I assume.
Show HN: Lights Out: my 2D Rubik's Cube-like Game
11–20 of 28 posts
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#12Memorize which cells are white when the board first loads. Tap all of those in order without regard to the way the board changes as you go. Edit: above tested for 5x5 rows&cols. For even boards it seems there’s a small end-game to repeat the process — something about parity I assume.
Why does that work?
Mathematically I might say that the system's precomputed solution vector is readily apparent.
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#13Earlier quoted context omitted.
Why does that work?
If you think of each button press as a matrix being added to the board state where only the row and column are set to 1, along with the commutative nature of the moves (order doesn't matter), then as long as the total number of "flips" from the cumulative matrices of moves is odd, then it will reset the board. Mathematically I might say that the system's precomputed solution vector is readily apparent.
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#14Earlier quoted context omitted.
If you think of each button press as a matrix being added to the board state where only the row and column are set to 1, along with the commutative nature of the moves (order doesn't matter), then as long as the total number of "flips" from the cumulative matrices of moves is odd, then it will reset the board. Mathematically I might say that the system's precomputed solution vector is readily apparent.
What if there was only one white block on the grid?
https://github.com/RaymondTana/Lights_Out/blob/31fe5e866c45c...
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#15Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#16https://en.wikipedia.org/wiki/Lights_Out_(game)
Math article https://matroidunion.org/?p=2160
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#17Earlier quoted context omitted.
If you think of each button press as a matrix being added to the board state where only the row and column are set to 1, along with the commutative nature of the moves (order doesn't matter), then as long as the total number of "flips" from the cumulative matrices of moves is odd, then it will reset the board. Mathematically I might say that the system's precomputed solution vector is readily apparent.
What if there was only one white block on the grid?
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#18Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#19As far as I know, my son is the only person who plays it. :-)
Re: Show HN: Lights Out: my 2D Rubik's Cube-like Game
#20Not to be confused with the other grid based light flipping game, Lights Out, from 1995. https://en.wikipedia.org/wiki/Lights_Out_(game) Math article https://matroidunion.org/?p=2160
https://en.wikipedia.org/wiki/Merlin_(console)
Which was only 3x3. But red LEDs which were all the rage in handhelds in the 80s.
When learning JavaScript I made a dupe of the Merlin game in JavaScript. It’s really old but still seems to run. Lacks the depth of this game with its larger grid.