26 lines
540 B
Rust
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)
|
|
} |