diff --git a/src/day11/input.txt b/src/day11/input.txt new file mode 100644 index 0000000..8fbd6cf --- /dev/null +++ b/src/day11/input.txt @@ -0,0 +1,140 @@ +..#............................#....................................................................................#..........#........#... +..........#.........................................#....................................................................................... +...................#..........................................................................#............................................. +.....................................................................................#.............................................#........ +.......#.......#.............#..........#......#...................#.....#.................................................................. +................................................................................#..................#..............#......................... +....................................#....................................................................................................... +...........#...................................................................................#......................................#..... +.......................................................................................................................#.........#.......... +.....................#.................................................#...................#.................#..............#............... +....#...........................................#...............#........................................................................... +.........................#.......................................................................#.......................................... +...................................#......................#.......................................................#.......................#. +..................#...........................................................#.......................#.................#...........#....... +..........#........................................................#..........................................#............................. +.............................................#.........#.....#.............................................................................. +.......................#.....................................................................#..............................#..........#.... +.............................#.......................................................#...........................#.......................... +..#...........#.......................#.....................................#............................................................... +...........................................................#.............................................#.................................. +......#..........................................................#......#........................................................#.......... +................................#.........#...........#....................................#........#...................#..................# +...........................#..................................................#..............................#.............................. +..............................................#.................................................#........................................... +.#.................................................................................................................#........................ +.......................................................................#.................................................................... +...............#.............................................................................................................#..........#... +.................................#.............................#............................................#............................... +.....#.................#...................#................................................................................................ +....................................................#...................................................#............#...................... +...........#.....#...................................................................#............................................#......... +..............................................#...........................................................................#................. +...#.........................#.....................................................................#........................................ +.........................................................#...................................#........................................#..... +.........#....................................................#........#................#.....................#............................. +........................#..........................................................................................#........................ +..............#...................................#............................#.............................................#.....#........ +.................................#................................................................#......................................... +..................#........................#...............#................................#.............#.............................#... +..........#........................................................#............................................................#........... +..#.....................................................................................#.............................#..................... +..........................#..........#..................................#......................................#...........#................ +................................................................#........................................................................... +................#................................#..........................#............................................................... +...........................................#..................................................#.....#.......#............................... +..........#............................................#.....................................................................#.............. +.......................#....................................#...........................................................#..............#.... +.....#.........................#........#..............................................#.................#........................#......... +.................#....................................................#............................................#........................ +....................................#...............#................................................#...................................... +.........................#........................................#................#.......#...................#............................ +....................................................................................................................................#....... +...........#...................................#...........................#......................#.........................#..............# +..................................#......#.................................................................................................. +......#....................#.........................#..................................................#................................... +......................#...................................#......#.....#.................................................#.................. +..............#..............................................................................#.................#.....................#...... +............................................................................................................................................ +#.............................#................#....................................................................#....................#.. +............................................................................................................................................ +........#...........................................#....................................................................................... +...................................................................#..........#..................#.......................................... +.....................#............#........#.............................................#............#................#.................... +................#............................................................................................................#.............. +...............................................................................................................#...................#........ +........................#......#..........................#.....#......#................................................................#... +................................................#..........................................#.............#.................................. +......................................#..............................................................................#...................... +..#.................................................................#.........#............................................................. +..........#.....#...............................................................................................#...........#............... +.................................#....................................................................#..............................#...... +.....................................................#........................................#........................#.................... +..........................................#..................#............#................................................................. +......................#...............................................................#..................#.........#............#........... +......#........................................................................#............................................................ +...................................#...................................#..................................................#................. +...................................................#.........................................#.................#............................ +...........................#...................................#.....................................................................#...... +........................................#................................................................................................... +................#......................................#........................#.........#.....#........................................... +...........#......................#.....................................................................#................................... +....#....................#...................#...................#................................................#...........#...........#. +............................................................................................................................................ +............................................................................................................................................ +.....................................#....................................#................................................................. +.......................#..................#........#............................#................#.............#............................ +...............#...............................................#......................#..............................................#...... +............................................................................................................................................ +.................................#...........#.....................#....................................................#................... +............................................................................................................................................ +..#........#..........#...............#..................................................................#..........#......................# +............................................................#............................#.................................................. +.................................................................#..........#.................................#.................#........... +.............................#......................#....................................................................................... +....#..................................................................................................................................#.... +...................#...............#..................................................#....................#................................ +.........................................................#......................................#...................#..............#........ +.....................................................................#...................................................#.................. +........................#...................................................................#..................#............................ +...#.....#...............................#....................#............................................................................. +................#...............#........................................................................................................... +.....................#........................................................#.....................................................#....... +..............................................#.......#................#...............................................#...................# +.........................................................................................#...............#...................#.............. +.#...........................#.......#...................................................................................................... +.............................................................................................................#........................#..... +.................................#.......................................................................................................... +...........#........................................................................................#.............................#......... +................#...............................................#............................#...................#.......................... +...#............................................................................#........................................................... +....................................................#.......#.......#......#...........................................................#.... +.........................#.................................................................................................................. +....................#...............#.........................................................................................#............. +.........................................................#....................#......................#...................................... +....#........................#...............#........................#...............#..................................................... +..........#......#....................................................................................................................#..... +..............................................................................................#...................#......................... +.......................................................#...................................................#.................#.............. +..........................#....................#............................................................................................ +........................................#......................#.........#...............#.......#......................#.........#.....#... +...............................#....................................#....................................................................... +........#...........#.............................#......................................................................................... +...#...........#...................................................................#..................#............#........................ +...........................#..............................#...................................#............................................. +...................................#.............................#..........................................#............................... +..............................................#........................#........#..........................................#................ +.......................................................................................#.............................#..............#....... +.........................................#.................................................................................................. +.....#............#......................................#.....#............................#............................................... +............................#............................................................................................................... +.......................#.........#........................................#..............................#...............................#.. +..#...........#.......................................#.........................#........................................................... +.......................................#.........................#.......................................................................... +............................................................#............................................................................... +.......#......................#........................................#................................................#..............#.... +..............................................................................................................#............................. +...............................................#.....................................................#...................................... +......................#..................................................................#......#.................................#.......#. +..#.......#................#......#..................................#.......#.....................................#........................ +................#...............................................#..................#....................#..................#................ diff --git a/src/day11/mod.rs b/src/day11/mod.rs new file mode 100644 index 0000000..727a0e3 --- /dev/null +++ b/src/day11/mod.rs @@ -0,0 +1,20 @@ +use crate::common::{read_file, match_inputs, split_lines}; + +#[allow(dead_code)] +pub fn part_two() { + +} + +#[allow(dead_code)] +pub fn part_one() { + let input = setup(); +} + +fn setup() -> Vec> { + let name = "day11"; + println!("Executing module '{name}' entrypoint . . . "); + + let content = read_file(name); + let lines = split_lines(&content); + match_inputs(lines, &r".") +} diff --git a/src/main.rs b/src/main.rs index 752a04c..4ca4a6f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,19 @@ use std::time::Instant; mod common; + mod day09; +mod day11; fn main() { println!("Executing main entrypoint . . . "); let now = Instant::now(); // day09::part_one(); - day09::part_two(); + // day09::part_two(); + + day11::part_one(); + // day11::part_two(); let elapsed = now.elapsed(); println!("Execution in {:?}.", elapsed);