Advent of Code 2021

:author:

mcgillij

:category:

Python

:date:

2021-12-30 19:49

:tags:

Linux, AOC, AdventOfCode, #100DaysToOffload, copilot, github

:slug:

advent-of-code-2021

:summary:

Just my entries into the advent of code 2021, been busy with these.

:cover_image:

aoc.png

Contents

Advent of Code 2021

Almost the best part of the year! Since 2015 the advent of code has been a staple in my December rituals. I’ve always worked my way through most of the entries, some years I finished them in time, some others I had family obligations to get to.

However they are a fantastic way to work through some interesting problems, and usually I use them to learn a new language or try something different.

This year was no different, the goals I set out with going into the challenge.

There’s always a nice story / hidden fun stuff and theme each year. This year the theme was submarine, scanners, sonar and sea life. And overall was quite a great experience. They do a fantastic job of explaining the problems.

Each day 1 new problem, and a bonus step.

How did Copilot do?

It started off quite well, the first 2 days it was able to handle the problems mostly from my comments. But quickly it escalated to lots of errors and it became an exercise in debugging and code-review. Which is fine I guess, since you get what pay for. Overall I do enjoy using Copilot, however I find it most useful in places where you are having to fill out boilerplate code. Or even just writing documentation.

Below are the links to the challenges and the solutions in

Python

.

AoC 1

:

day1.py

AoC 2

:

day2.py

AoC 3

:

day3.py

AoC 4

:

day4.py

AoC 5

:

day5.py

AoC 6

:

day6.py

AoC 7

:

day7.py

AoC 8

:

day8.py

AoC 9

:

day9.py

AoC 10

:

day10.py

AoC 11

:

day11.py

AoC 12

:

day12.py

AoC 13

:

day13.py

AoC 14

:

day14.py

AoC 15

:

day15.py

AoC 16

:

day16.py

AoC 17

:

day17.py

AoC 18

:

day18.py

AoC 19

:

day19.py

AoC 20

:

day20.py

AoC 21

:

day21.py

AoC 22

:

day22.py

AoC 23

:

day23.py

AoC 24

:

day24.py

AoC 25

:

day25.py

Can’t wait to see what they come up with next year.