A solver for Game about Squares, written in Rust
Find a file
2025-06-16 06:56:54 -05:00
levels Add level with no solution 2023-10-12 07:22:20 -05:00
src refactor: use Option::map instead of match 2025-06-16 06:56:54 -05:00
.gitignore Initial commit 2023-10-08 17:50:22 -05:00
Cargo.lock Initial commit 2023-10-08 17:50:22 -05:00
Cargo.toml Initial commit 2023-10-08 17:50:22 -05:00
LICENSE Initial commit 2023-10-08 17:50:22 -05:00
README.md Initial commit 2023-10-08 17:50:22 -05:00

Solver of Squares (in Rust)

This is a solver for Game about squares.

It implements A* with a non-admissable heuristic, so the outputs are not guaranteed to be optimal. But it's fun anyway.

Run

The executable takes a path to a YAML file describing the blocks and arrows for the puzzle. It will calculate a solution and print the number of moves required and the ordering of the colors to complete the puzzle.

cargo run -- ./levels/level_31.yaml