ameroyer / advent_of_code_2018

A Python solution to Advent of Code 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Python solution to Advent of Code 2018


Languages

Language:Jupyter Notebook 100.0%