This commit is contained in:
Kristofers Solo 2023-12-14 20:03:15 +02:00
parent 8921484f49
commit 58ba774f24
7 changed files with 67 additions and 0 deletions

9
2023/day-14/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "day-14"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
color-eyre.workspace = true

0
2023/day-14/input.txt Normal file
View File

View File

@ -0,0 +1,9 @@
use color_eyre::Result;
use day_14::part1::process;
fn main() -> Result<()> {
let file = include_str!("../../input.txt");
let result = process(file)?;
println!("{}", result);
Ok(())
}

View File

@ -0,0 +1,9 @@
use color_eyre::Result;
use day_14::part2::process;
fn main() -> Result<()> {
let file = include_str!("../../input.txt");
let result = process(file)?;
println!("{}", result);
Ok(())
}

2
2023/day-14/src/lib.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod part1;
pub mod part2;

19
2023/day-14/src/part1.rs Normal file
View File

@ -0,0 +1,19 @@
use color_eyre::Result;
pub fn process(input: &str) -> Result<usize> {
todo!("day xx - part 1");
Ok(0)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_process() -> Result<()> {
let input = "";
todo!("haven't built test yet");
assert_eq!(0, process(input)?);
Ok(())
}
}

19
2023/day-14/src/part2.rs Normal file
View File

@ -0,0 +1,19 @@
use color_eyre::Result;
pub fn process(input: &str) -> Result<usize> {
todo!("day xx - part 2");
Ok(0)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_process() -> Result<()> {
let input = "";
todo!("haven't built test yet");
assert_eq!(0, process(input)?);
Ok(())
}
}