day(23): remove unnecessary debug and empty lines
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
f4e86f27ae
commit
b49833f6f5
1 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue