Show HN: Lights Out: my 2D Rubik's Cube-like Game
a day ago
- #Manim
- #mathematical puzzle
- #TypeScript
- Lights Out is a mathematical puzzle played on an n×n grid with red and white cells.
- The goal is to turn all cells red by clicking cells, which flip their color and adjacent cells based on different rules.
- Three rules mentioned: Adjacent (flips north, east, south, west neighbors), Same Row & Col (flips entire row and column), and Diagonals (flips diagonal cells).
- General strategies exist for solving boards under the Same Row & Col rule when n is odd or even.
- Implemented in TypeScript with strict mode, static type-checking, union types, and interfaces.
- Includes a teaser video made for Lights Out in Manim.