2020 day 11 cleanup: Removed commented out code and set target value for challenge part 2
This commit is contained in:
parent
3dc435be47
commit
dc6ec67f4e
1 changed files with 1 additions and 7 deletions
|
@ -100,12 +100,6 @@ impl Ferry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
res
|
res
|
||||||
// (0..=2).map(|dx| (0..=2)
|
|
||||||
// .filter(|&dy| !(dx==1 && dy==1) &&
|
|
||||||
// (1..=self.seats.len()).contains(&(y+dy)) &&
|
|
||||||
// (1..=self.seats[0].len()).contains(&(x+dx)) &&
|
|
||||||
// self.seats[y+dy-1][x+dx-1] == Seat::Occupied).count())
|
|
||||||
// .sum()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn round_v2(&mut self) -> bool {
|
fn round_v2(&mut self) -> bool {
|
||||||
|
@ -162,6 +156,6 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_challenge() {
|
fn test_challenge() {
|
||||||
let challenge_input = read_file("tests/challenge_input");
|
let challenge_input = read_file("tests/challenge_input");
|
||||||
assert_eq!(run(&challenge_input), Ok((2441, 0)));
|
assert_eq!(run(&challenge_input), Ok((2441, 2190)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue