1
0
Fork 0

day(23): remove unnecessary debug and empty lines

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-07-02 23:12:26 +02:00
parent f4e86f27ae
commit b49833f6f5
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -80,17 +80,10 @@ fn propose_moves(i: usize, elves: &Input) -> BTreeMap<Position, Position> {
{ {
let new_position = adjacent[0] + *elf; let new_position = adjacent[0] + *elf;
// debug!(
// "{:?} proposes moving by {:?} to {:?}",
// elf, adjacent[0], new_position
// );
if already_proposed.contains(&new_position) { if already_proposed.contains(&new_position) {
// cannot move more than one elf to the position // cannot move more than one elf to the position
moves.remove(&new_position); moves.remove(&new_position);
// debug!("{:?} would move to the same location ({:?} by {:?}) as other elf, canceling!", elf, new_position, adjacent[0]);
break; break;
} }
@ -184,13 +177,11 @@ impl Solution<Input, Output> for Day23 {
fn part_1(input: &Input) -> Output { fn part_1(input: &Input) -> Output {
let mut positions = input.clone(); let mut positions = input.clone();
// debug!("== Initial State =="); // debug!("== Initial State ==");
// show_ground_with_dimensions(&positions, -3, 10, -2, 9); // show_ground_with_dimensions(&positions, -3, 10, -2, 9);
for i in 0..10 { for i in 0..10 {
round(i, &mut positions); round(i, &mut positions);
// debug!("== End of Round {} ==", i + 1); // debug!("== End of Round {} ==", i + 1);
// show_ground_with_dimensions(&positions, -3, 10, -2, 9); // show_ground_with_dimensions(&positions, -3, 10, -2, 9);
} }