Dennis Brentjes 4a94c602f6 Refactor.
2023-12-05 10:59:51 +01:00

26 lines
540 B
Rust

use std::{collections::HashSet, path::Path, str::FromStr};
use crate::input::{AdventError, read_into_vec};
impl FromStr for ScratchGame {
type Err = AdventError;
fn from_str(s: &str) -> Result<Self, Self::Err> {
todo!()
}
}
struct ScratchGame {
id: i32,
my_numbers: HashSet<i32>,
winning_numbers: HashSet<i32>
}
pub fn one() -> Result<u32, AdventError> {
let games = read_into_vec::<ScratchGame>(Path::new("resources/input4.txt"));
Ok(0)
}
pub fn two() -> Result<u32, AdventError> {
Ok(0)
}