Skeleton for day 21

This commit is contained in:
kageru 2021-12-21 09:38:17 +01:00
parent 64e851cd77
commit aa2e083c2d
2 changed files with 40 additions and 0 deletions

2
2021/inputs/day21 Normal file
View File

@ -0,0 +1,2 @@
Player 1 starting position: 7
Player 2 starting position: 3

38
2021/src/bin/day21.rs Normal file
View File

@ -0,0 +1,38 @@
#![feature(test)]
extern crate test;
use aoc2021::common::*;
const DAY: usize = 21;
type Parsed = Vec<usize>;
fn parse_input(raw: &str) -> Parsed {
unimplemented!()
}
fn part1(parsed: &Parsed) -> usize {
unimplemented!()
}
fn part2(parsed: &Parsed) -> usize {
unimplemented!()
}
fn main() {
let input = parse_input(&read_file(DAY));
println!("Part 1: {}", part1(&input));
println!("Part 2: {}", part2(&input));
}
#[cfg(test)]
mod tests {
use super::*;
use aoc2021::*;
const TEST_INPUT: &str = "";
test!(part1() == 0);
test!(part2() == 0);
bench!(part1() == 0);
bench!(part2() == 0);
bench_input!(Vec::len => 0);
}