Skip to content

Commit 6f3919f

Browse files
committed
feat: day 14 restroom redoubt 2/2 soln, #22
1 parent 29b16d8 commit 6f3919f

File tree

8 files changed

+560
-23
lines changed

8 files changed

+560
-23
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This repository contains solutions and a local development environment for the [
2424
- Day 11: Plutonian Pebbles [[link]](/src/2024/2024-12-11/README.md)
2525
- Day 12: Garden Groups [[link]](/src/2024/2024-12-12/README.md)
2626
- Day 13: Claw Contraption [[link]](/src/2024/2024-12-13/README.md)
27+
- Day 14: Restroom Redoubt [[link]](/src/2024/2024-12-14/README.md)
2728

2829
</details>
2930

src/2024/2024-12-14/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
Visit the Advent of Code website for more information on this puzzle at:
44

55
**Source:** https://adventofcode.com/2024/day/14<br>
6-
**Status:** On-going
6+
**Status:** Complete ⭐
77

88
## Code
99

10+
### `findEasterEgg.ts`
11+
12+
- **`findEasterEgg()`** - Counts the no. of seconds before robots display (form) the Christmas Tree easter egg.
13+
> **NOTE:** I got tips and hints from about the figure of the Christmas tree [here](https://elixirforum.com/t/advent-of-code-2024-day-14/68091/3) after trying to observe for a 🎄 pattern in grid renders per second iteration.
14+
1015
### `safetyFactor.ts`
1116

12-
- `calculateSafetyFactor()` - Counts the safety factor after `params.seconds` of simulating moving the robots.
17+
- **`calculateSafetyFactor()`** - Counts the safety factor after `params.seconds` of simulating moving the robots.
1318

1419
### `board.ts`
1520

0 commit comments

Comments
 (0)