summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Hader <[email protected]>2026-08-19 20:45:53 -0500
committerDaniel Hader <[email protected]>2026-08-19 20:45:53 -0500
commit65508cfc33dc52fff5ff46618f75d954abff13b1 (patch)
tree3b329e7e449038008ce2f578127d6ed628a3a125 /examples
parente737486b668164d437c67e05f95d32c94e946e6a (diff)
very slow solution implementationHEADmain
Diffstat (limited to 'examples')
-rw-r--r--examples/puzzle-a-day.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/puzzle-a-day.rs b/examples/puzzle-a-day.rs
index 6577ede..0fd0877 100644
--- a/examples/puzzle-a-day.rs
+++ b/examples/puzzle-a-day.rs
@@ -1,4 +1,4 @@
-use calendar_puzzle::{CalanderPuzzle, rectangular::{Coords, Piece, Puzzle}};
+use calendar_puzzle::{CalendarPuzzle, rectangular::{Coords, Piece, Puzzle}};
fn main() {
// construct board coordinates
@@ -83,4 +83,7 @@ fn main() {
println!("");
}
}
+
+ let solutions = puzzle.solve(true);
+ println!("Number of solutions: {}", solutions.len());
}