joriskes / adventofcode2021

Advent of code 2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of code 2021

This year i'm doing advent of code in PHP 7.4. I'm pretty ok in PHP. Used composer to pull in some helpful additions

Running

Start by running composer update do download dependencies Copy .env.example to .env and set the environment variable called AOC_SESSION with the session cookie of adventofcode.com If you run your day solution for the first time you can use php download.php <DAYNUMBER> to download the puzzle input in it's own directory It will also copy template.php to the directory and name it run.php, you may freely change the template file to your own needs

Fun stuff

  • Day 5, part 2 rendered to image image

About

Advent of code 2021


Languages

Language:PHP 99.8%Language:Shell 0.2%