소스 검색

clean up day10

Jake Fenton 1 년 전
부모
커밋
de148b2eb1
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      src/bin/10.rs

+ 0 - 5
src/bin/10.rs

@@ -48,7 +48,6 @@ pub fn part_two(input: &str) -> Option<i32> {
     let mut waiting = false;
 
     for clock in 0..240 {
-        println!("cycle {clock} val {register}");
         if clock > 1 && clock % 40 == 0 {
             output += "\n";
         }
@@ -60,7 +59,6 @@ pub fn part_two(input: &str) -> Option<i32> {
 
         match queued_ad {
             Some(i) => {
-                println!("cycle {clock} finishing addx {i}");
                 register += i;
                 queued_ad = None;
                 continue;
@@ -69,12 +67,9 @@ pub fn part_two(input: &str) -> Option<i32> {
         }
 
         let op = lines.next().unwrap();
-        println!("op is {op}");
         if op.starts_with("n") {
             // do nothing this clock cycle
-            println!("cycle {clock} noop");
         } else {
-            println!("cycle {clock} queuing add");
             queued_ad = Some(op.split_once(" ").unwrap().1.parse().unwrap());
             waiting = true;
         }