fix failing tests

This commit is contained in:
ktims committed 2026-12-02 13:51:10 -07:00
1 parent b9478fbb6b
commit ba83989539
14 files changed
+51 -149

No files matched your search

+1 -7
View File
@@ -99,13 +99,7 @@ fn parse(input: &str) -> PresentsProblem {
// }
impl PresentsProblem {
fn place_shape(
&self,
mut t: ChristmasTree,
idx: usize,
pos: Coord2d,
variant: usize,
) -> Option<ChristmasTree> {
fn place_shape(&self, mut t: ChristmasTree, idx: usize, pos: Coord2d, variant: usize) -> Option<ChristmasTree> {
let variant = &self.shapes[t.presents[idx].shape].variants[variant];
for xy in variant.find_all(&true) {