aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar alecdwm 2019-12-02 02:19:15 +1000
committerGravatar alecdwm 2019-12-02 02:19:15 +1000
commit7a6be9ed935efaca217a12eb1c7f0e82959518dc (patch)
tree574790d43a2d51d0743ac2319daa628c2f193658
parent12db740c7eed53ea825237f0e114e24e285196f9 (diff)
fixed y2018 documentation
-rw-r--r--src/y2018.rs8
-rw-r--r--src/y2018/day1.rs8
-rw-r--r--src/y2018/day2.rs2
-rw-r--r--src/y2018/day3.rs2
-rw-r--r--src/y2018/day4.rs2
-rw-r--r--src/y2018/day5.rs2
-rw-r--r--src/y2018/day6.rs2
-rw-r--r--src/y2018/day7.rs2
8 files changed, 21 insertions, 7 deletions
diff --git a/src/y2018.rs b/src/y2018.rs
index da2f914..4a87b0e 100644
--- a/src/y2018.rs
+++ b/src/y2018.rs
@@ -1,3 +1,11 @@
+//! "We've detected some temporal anomalies," one of Santa's Elves at the Temporal Anomaly Research and Detection Instrument Station tells you. She sounded pretty worried when she called you down here. "At 500-year intervals into the past, someone has been changing Santa's history!"
+//!
+//! "The good news is that the changes won't propagate to our time stream for another 25 days, and we have a device" - she attaches something to your wrist - "that will let you fix the changes with no such propagation delay. It's configured to send you 500 years further into the past every few days; that was the best we could do on such short notice."
+//!
+//! "The bad news is that we are detecting roughly fifty anomalies throughout time; the device will indicate fixed anomalies with stars. The other bad news is that we only have one device and you're the best person for the job! Good lu--" She taps a button on the device and you suddenly feel like you're falling. To save Christmas, you need to get all fifty stars by December 25th.
+//!
+//! Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
+
pub mod day1;
pub mod day2;
pub mod day3;
diff --git a/src/y2018/day1.rs b/src/y2018/day1.rs
index 91ea0bf..c99e2f9 100644
--- a/src/y2018/day1.rs
+++ b/src/y2018/day1.rs
@@ -1,10 +1,4 @@
-//! "We've detected some temporal anomalies," one of Santa's Elves at the Temporal Anomaly Research and Detection Instrument Station tells you. She sounded pretty worried when she called you down here. "At 500-year intervals into the past, someone has been changing Santa's history!"
-//!
-//! "The good news is that the changes won't propagate to our time stream for another 25 days, and we have a device" - she attaches something to your wrist - "that will let you fix the changes with no such propagation delay. It's configured to send you 500 years further into the past every few days; that was the best we could do on such short notice."
-//!
-//! "The bad news is that we are detecting roughly fifty anomalies throughout time; the device will indicate fixed anomalies with stars. The other bad news is that we only have one device and you're the best person for the job! Good lu--" She taps a button on the device and you suddenly feel like you're falling. To save Christmas, you need to get all fifty stars by December 25th.
-//!
-//! Collect stars by solving puzzles. Two puzzles will be made available on each day in the advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
+//! --- Day 1: Chronal Calibration ---
use std::collections::BTreeSet;
diff --git a/src/y2018/day2.rs b/src/y2018/day2.rs
index 6f92604..f90b293 100644
--- a/src/y2018/day2.rs
+++ b/src/y2018/day2.rs
@@ -1,3 +1,5 @@
+//! --- Day 2: Inventory Management System ---
+//!
//! You stop falling through time, catch your breath, and check the screen on the device. "Destination reached. Current Year: 1518. Current Location: North Pole Utility Closet 83N10." You made it! Now, to find those anomalies.
//!
//! Outside the utility closet, you hear footsteps and a voice. "...I'm not sure either. But now that so many people have chimneys, maybe he could sneak in that way?" Another voice responds, "Actually, we've been working on a new kind of suit that would let him fit through tight spaces like that. But, I heard that a few days ago, they lost the prototype fabric, the design plans, everything! Nobody on the team can even seem to remember important details of the project!"
diff --git a/src/y2018/day3.rs b/src/y2018/day3.rs
index 434de69..871f6de 100644
--- a/src/y2018/day3.rs
+++ b/src/y2018/day3.rs
@@ -1,3 +1,5 @@
+//! --- Day 3: No Matter How You Slice It ---
+//!
//! The Elves managed to locate the chimney-squeeze prototype fabric for Santa's suit (thanks to someone who helpfully wrote its box IDs on the wall of the warehouse in the middle of the night). Unfortunately, anomalies are still affecting them - nobody can even agree on how to cut the fabric.
//!
//! The whole piece of fabric they're working on is a very large square - at least 1000 inches on each side.
diff --git a/src/y2018/day4.rs b/src/y2018/day4.rs
index 7c1bf2e..e417ff8 100644
--- a/src/y2018/day4.rs
+++ b/src/y2018/day4.rs
@@ -1,3 +1,5 @@
+//! --- Day 4: Repose Record ---
+//!
//! You've sneaked into another supply closet - this time, it's across from the prototype suit manufacturing lab. You need to sneak inside and fix the issues with the suit, but there's a guard stationed outside the lab, so this is as close as you can safely get.
use std::collections::BTreeMap;
diff --git a/src/y2018/day5.rs b/src/y2018/day5.rs
index 2b836d8..93ee47d 100644
--- a/src/y2018/day5.rs
+++ b/src/y2018/day5.rs
@@ -1,3 +1,5 @@
+//! --- Day 5: Alchemical Reduction ---
+//!
//! You've managed to sneak in to the prototype suit manufacturing lab. The Elves are making decent progress, but are still struggling with the suit's size reduction capabilities.
/// While the very latest in 1518 alchemical technology might have solved their problem eventually, you can do better. You scan the chemical composition of the suit's material and discover that it is formed by extremely long polymers (one of which is available as your puzzle input).
diff --git a/src/y2018/day6.rs b/src/y2018/day6.rs
index a8a1202..c577233 100644
--- a/src/y2018/day6.rs
+++ b/src/y2018/day6.rs
@@ -1,3 +1,5 @@
+//! --- Day 6: Chronal Coordinates ---
+//!
//! The device on your wrist beeps several times, and once again you feel like you're falling.
use std::cmp;
diff --git a/src/y2018/day7.rs b/src/y2018/day7.rs
index 1dffd94..c926ca7 100644
--- a/src/y2018/day7.rs
+++ b/src/y2018/day7.rs
@@ -1,3 +1,5 @@
+//! --- Day 7: The Sum of Its Parts ---
+//!
//! You find yourself standing on a snow-covered coastline; apparently, you landed a little off course. The region is too hilly to see the North Pole from here, but you do spot some Elves that seem to be trying to unpack something that washed ashore. It's quite cold out, so you decide to risk creating a paradox by asking them for directions.
use std::collections::BTreeMap;