Skip to content

Commit c4348fb

Browse files
committed
Added README for day 3.
1 parent dc0278a commit c4348fb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

day03/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# --- [Day 3: Perfectly Spherical Houses in a Vacuum](http://adventofcode.com/day/3) ---
2+
3+
## --- Part One ---
4+
5+
Santa is delivering presents to an infinite two-dimensional grid of houses.
6+
7+
He begins by delivering a present to the house at his starting location, and then an elf at the North Pole calls him via radio and tells him where to move next. Moves are always exactly one house to the north (^), south (v), east (>), or west (<). After each move, he delivers another present to the house at his new location.
8+
9+
However, the elf back at the north pole has had a little too much eggnog, and so his directions are a little off, and Santa ends up visiting some houses more than once. How many houses receive __at least one present?__
10+
11+
For example:
12+
13+
- > delivers presents to 2 houses: one at the starting location, and one to the east.
14+
- ^>v< delivers presents to 4 houses in a square, including twice to the house at his starting/ending location.
15+
- ^v^v^v^v^v delivers a bunch of presents to some very lucky children at only 2 houses.
16+
17+
Your puzzle answer was _2592_.
18+
19+
## --- Part Two ---
20+
21+
The next year, to speed up the process, Santa creates a robot version of himself, __Robo-Santa__, to deliver presents with him.
22+
23+
Santa and Robo-Santa start at the same location (delivering two presents to the same starting house), then take turns moving based on instructions from the elf, who is eggnoggedly reading from the same script as the previous year.
24+
25+
This year, how many houses receive __at least one present?__
26+
27+
For example:
28+
29+
- ^v delivers presents to 3 houses, because Santa goes north, and then Robo-Santa goes south.
30+
- ^>v< now delivers presents to 3 houses, and Santa and Robo-Santa end up back where they started.
31+
- ^v^v^v^v^v now delivers presents to 11 houses, with Santa going one direction and Robo-Santa going the other.
32+
33+
Your puzzle answer was _2360_.

0 commit comments

Comments
 (0)