From 1307d8358b721faa76c7727853af7b5001fe1509 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 5 Jan 2016 20:45:14 -0800 Subject: [PATCH] day22 --- aoc-racket.scrbl | 4 +++- day22-input.txt | 2 ++ day22.rkt | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 day22-input.txt create mode 100644 day22.rkt 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}. +