diff options
Diffstat (limited to 'src/2015/day22/aoc.cpp')
-rw-r--r-- | src/2015/day22/aoc.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/2015/day22/aoc.cpp b/src/2015/day22/aoc.cpp index 1c33c66..1e6ae41 100644 --- a/src/2015/day22/aoc.cpp +++ b/src/2015/day22/aoc.cpp @@ -2,4 +2,23 @@ namespace aoc2015 { +static spell bosskill = {0, 1, 8, 0, 0, 0, 0}; +static spell spells[5] = { + {53, 1, 4, 0, 0, 0, 0}, + {73, 1, 2, 2, 0, 0, 0}, + {113, 6, 0, 0, 0, 7, 0}, + {173, 6, 3, 0, 0, 0, 0}, + {229, 5, 0, 0, 101, 0, 0}, +}; + +bool effects(wizard&); + +std::pair<int, int> day22(wizard me, wizard boss) { + me.spells[0] = & bosskill; + for (int i = 0; i < 5; i++) { + boss.spells[i] = spells + i; + } + return {0, 0}; +} + } |