Skip to content

Commit a7727d4

Browse files
committed
Updated composer.json and readme for 2016-2
1 parent 865c9bc commit a7727d4

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

composer.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
"App\\": "src/"
3131
}
3232
},
33-
"autoload-dev": {
34-
"psr-4": {
35-
"App\\Tests\\": "tests/"
36-
}
37-
},
3833
"replace": {
3934
"symfony/polyfill-ctype": "*",
4035
"symfony/polyfill-iconv": "*",
@@ -44,18 +39,6 @@
4439
"symfony/polyfill-php80": "*",
4540
"symfony/polyfill-php81": "*"
4641
},
47-
"scripts": {
48-
"auto-scripts": {
49-
"cache:clear": "symfony-cmd",
50-
"assets:install %PUBLIC_DIR%": "symfony-cmd"
51-
},
52-
"post-install-cmd": [
53-
"@auto-scripts"
54-
],
55-
"post-update-cmd": [
56-
"@auto-scripts"
57-
]
58-
},
5942
"conflict": {
6043
"symfony/symfony": "*"
6144
},
Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
# Advent of Code 2016 - Day 1
22

3-
## Problem Statement
3+
### Day 1: No Time for a Taxicab
44

5-
## Input
5+
Santa's sleigh uses a very high-precision clock to guide its movements, and the clock's oscillator is regulated by stars. Unfortunately, the stars have been stolen... by the Easter Bunny. To save Christmas, Santa needs you to retrieve all fifty stars by December 25th.
66

7-
## Part 1
7+
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
88

9-
## Part 2
9+
You're airdropped near Easter Bunny Headquarters in a city somewhere. "Near", unfortunately, is as close as you can get - the instructions on the Easter Bunny Recruiting Document the Elves intercepted start here, and nobody had time to work them out further.
10+
11+
The Document indicates that you should start at the given coordinates (where you just landed) and face North. Then, follow the provided sequence: either turn left (L) or right (R) 90 degrees, then walk forward the given number of blocks, ending at a new intersection.
12+
13+
There's no time to follow such ridiculous instructions on foot, though, so you take a moment and work out the destination. Given that you can only walk on the street grid of the city, how far is the shortest path to the destination?
14+
15+
For example:
16+
17+
- Following ```R2```, ```L3``` leaves you ```2``` blocks East and ```3``` blocks North, or ```5``` blocks away.
18+
- ```R2```, ```R2```, ```R2``` leaves you ```2``` blocks due South of your starting position, which is ```2``` blocks away.
19+
- ```R5```, ```L5```, ```R5```, ```R3``` leaves you ```12``` blocks away.
20+
21+
### Part two
22+
23+
Then, you notice the instructions continue on the back of the Recruiting Document. Easter Bunny HQ is actually at the first location you visit twice.
24+
25+
For example, if your instructions are R8, R4, R4, R8, the first location you visit twice is 4 blocks away, due East.
26+
27+
How many blocks away is the first location you visit twice?

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy