aoc-2018-python

Advent of Code 2018 Solutions in Python
git clone https://git.sinitax.com/sinitax/aoc-2018-python
Log | Files | Refs | README | sfeed.txt

part2 (998B)


      1--- Part Two ---
      2
      3There are many areas the springdroid can't reach.  You flip through the manual and discover a way to
      4increase its sensor range.
      5
      6Instead of ending your springcode program with WALK, use RUN. Doing this will enable
      7extended sensor mode, capable of sensing ground up to nine tiles away. This data is available in
      8five new read-only registers:
      9
     10
     11 - Register E indicates whether there is ground five tiles away.
     12
     13 - Register F indicates whether there is ground six tiles away.
     14
     15 - Register G indicates whether there is ground seven tiles away.
     16
     17 - Register H indicates whether there is ground eight tiles away.
     18
     19 - Register I indicates whether there is ground nine tiles away.
     20
     21
     22All other functions remain the same.
     23
     24Successfully survey the rest of the hull by ending your program with RUN.  What amount of hull
     25damage does the springdroid now report?
     26
     27