Skip to content

ameroyer/advent_of_code_2018

Repository files navigation

Advent of Code 2018 GitHub repo size in bytes colab link

My Python solution to Advent of Code 2018. Each day is in a separate notebook for easy vizualisation, and the full code is also available in Colaboratory notebook. More information about the challenge here.

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other

Links to Solutions

Some Visualizations

[Day 3] [Day 6]
Fabric sheet and claimed patches Finite and infinite regions
[Day 22] [Day 20]
Map of the cave and shortest rescue path Mapped maze and distance heatmap
[Day 15] [Day 25]
Excerpt of the game unfolding Constellations
[Day 24]
Playing with emojis
Round 0 - Start
  • [G01 😇] [17/17 units] 5390 HP - 4507 🔥 DMG - RECEIVE: (☢: 2, 💫: 1, ❄ 1, 👊: 2, 🔥: 1)
  • [G02 😇] [989/989 units] 1274 HP - 25 💫 DMG - RECEIVE: (☢: 1, 💫: 2, ❄ 1, 👊: 2, 🔥: 0)
  • [G01 😈] [801/801 units] 4706 HP - 116 👊 DMG - RECEIVE: (☢: 2, 💫: 1, ❄ 1, 👊: 1, 🔥: 1)
  • [G02 😈] [4485/4485 units] 2961 HP - 12 💫 DMG - RECEIVE: (☢: 0, 💫: 1, ❄ 2, 👊: 1, 🔥: 2)

Round 1

  • [G01 😇] [17/17 units], [G02 😇] [989/989 units], [G01 😈] [801/801 units], [G02 😈] [4485/4485 units]
  • [G02 😈] ⚔ (107640 💫) (-84 units) [G02 😇], [G02 😇] ⚔ (22625 💫) (-4 units) [G01 😈], [G01 😇] ⚔ (153238 🔥) (-51 units)
  • [G02 😈], [G01 😈] ⚔ (184904 👊) (-34 units) [G01 😇]

Round 2

  • [G02 😇] [905/989 units], [G01 😈] [797/801 units], [G02 😈] [4434/4485 units]
  • [G02 😇] ⚔ (22625 💫) (-4 units) [G01 😈], [G01 😈] ⚔ (183976 👊) (-144 units) [G02 😇]

Round 3-8

  • ...

Round 8 - End

  • [G01 😈] [782/801 units] 4706 HP - 116 👊 DMG - RECEIVE: (☢: 2, 💫: 1, ❄ 1, 👊: 1, 🔥: 1)
  • [G02 😈] [4434/4485 units] 2961 HP - 12 💫 DMG - RECEIVE: (☢: 0, 💫: 1, ❄ 2, 👊: 1, 🔥: 2)

Winning team: Infection (😈)
Remaining units: 5216

Releases

No releases published

Packages

No packages published