porting over AOC from previous years to a monorepo.
This commit is contained in:
commit
84c4cf9991
194 changed files with 30104 additions and 0 deletions
0
2023/template/src/input.txt
Normal file
0
2023/template/src/input.txt
Normal file
14
2023/template/src/main.rs
Normal file
14
2023/template/src/main.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
mod part1;
|
||||
mod part2;
|
||||
mod parse;
|
||||
|
||||
fn main() {
|
||||
let input = include_str!("./input.txt");
|
||||
let structured_input = parse::parse(input);
|
||||
|
||||
println!("Part One");
|
||||
println!("Result: {}", part1::part1(&structured_input));
|
||||
|
||||
println!("Part Two");
|
||||
println!("Result: {}", part2::part2(&structured_input));
|
||||
}
|
||||
16
2023/template/src/parse.rs
Normal file
16
2023/template/src/parse.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pub type StructuredInput = usize;
|
||||
|
||||
pub fn parse(input: &str) -> StructuredInput {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
let input = concat!();
|
||||
assert_eq!(0, 0);
|
||||
}
|
||||
}
|
||||
15
2023/template/src/part1.rs
Normal file
15
2023/template/src/part1.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use crate::parse::*;
|
||||
|
||||
pub fn part1(input: &StructuredInput) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part1() {
|
||||
assert_eq!(0, 0);
|
||||
}
|
||||
}
|
||||
15
2023/template/src/part2.rs
Normal file
15
2023/template/src/part2.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use crate::parse::*;
|
||||
|
||||
pub fn part2(input: &StructuredInput) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part2() {
|
||||
assert_eq!(0, 0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue