Use shared lib on day 9
This commit is contained in:
parent
2c5e910b88
commit
61ca75696d
7
day9/Cargo.lock
generated
7
day9/Cargo.lock
generated
@ -2,6 +2,13 @@
|
|||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 3
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "aoc-shared"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "day9"
|
name = "day9"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"aoc-shared",
|
||||||
|
]
|
||||||
|
@ -6,3 +6,4 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
aoc-shared = { path = "../aoc-shared"}
|
@ -1,13 +1,6 @@
|
|||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
use aoc_shared::enums::*;
|
||||||
#[derive(Debug)]
|
use aoc_shared::enums::Direction::*;
|
||||||
enum Direction {
|
|
||||||
Up,
|
|
||||||
Down,
|
|
||||||
Left,
|
|
||||||
Right,
|
|
||||||
}
|
|
||||||
use Direction::*;
|
|
||||||
|
|
||||||
struct Move {
|
struct Move {
|
||||||
dir: Direction,
|
dir: Direction,
|
||||||
|
Reference in New Issue
Block a user