fix failing tests
This commit is contained in:
14 files changed
+51
-149
No files matched your search
+1
-7
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user