aoc

My solutions for the Advent of Code
git clone https://git.tronto.net/aoc
Download | Log | Files | Refs | README

b.rs (320B)


      1 mod common;
      2 use common::*;
      3 
      4 fn main() {
      5     const MAX_TURNS: usize = 1000;
      6     let (mut elves, mut lookup) = read_from_stdin();
      7     if let Some(n) = play(&mut elves, &mut lookup, MAX_TURNS) {
      8         println!("{}", n+1);
      9     } else {
     10         panic!("Not enough turns ({}), try increasing MAX_TURNS", MAX_TURNS);
     11     }
     12 }