diff --git a/2023/day4/src/main.rs b/2023/day4/src/main.rs index 47a249c..47ddaed 100644 --- a/2023/day4/src/main.rs +++ b/2023/day4/src/main.rs @@ -1,5 +1,31 @@ +use std::collections::HashMap; + const FILE_STR: &'static str = include_str!("input.txt"); +#[derive(Default)] +struct ScratchCard { + winning: Vec, + chosen: Vec, +} + +impl ScratchCard { + fn new(winning: Vec, chosen: Vec) -> Self { + ScratchCard { winning, chosen } + } +} + +type GameMap = HashMap; + +fn parse_game_table(table: &str) -> GameMap { + let mut map = HashMap::new(); + + table.split('\n').for_each(|line| { + todo!(); + }); + + map +} + fn part_one() { todo!(); }