diff --git a/aoc-racket.scrbl b/aoc-racket.scrbl index 670df98..87dbc89 100644 --- a/aoc-racket.scrbl +++ b/aoc-racket.scrbl @@ -41,4 +41,6 @@ You can install this package (if you haven't already) with @include-section[(submod "day18.rkt" doc)] @include-section[(submod "day19.rkt" doc)] @include-section[(submod "day20.rkt" doc)] -@include-section[(submod "day21.rkt" doc)] \ No newline at end of file +@include-section[(submod "day21.rkt" doc)] +@include-section[(submod "day22.rkt" doc)] +@include-section[(submod "day23.rkt" doc)] \ No newline at end of file diff --git a/day22-input.txt b/day22-input.txt new file mode 100644 index 0000000..ea164fd --- /dev/null +++ b/day22-input.txt @@ -0,0 +1,2 @@ +Hit Points: 58 +Damage: 9 \ No newline at end of file diff --git a/day22.rkt b/day22.rkt new file mode 100644 index 0000000..5d1e8be --- /dev/null +++ b/day22.rkt @@ -0,0 +1,16 @@ +#lang scribble/lp2 +@(require scribble/manual aoc-racket/helper) + +@aoc-title[22] + + +@link["http://adventofcode.com/day/22"]{The puzzle}. Our @link-rp["day22-input.txt"]{input} tells us our hit points and damage. + + + +@section{What's the least we can spend and win?} + +Did I mention I hate RPGs? Well, this question is much more RPG-ish than @secref{Day_21}. It involves spellscasting. So I'm taking a pass. If someone devises a concise solution, I'll be happy to add it to this page. + +Otherwise, onward to @secref{Day_23}. +