Skip to content

Source code for my participation to the Advent of Code 2022

License

Notifications You must be signed in to change notification settings

chsxf/advent-of-code-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c25d836 Β· Dec 17, 2022

History

17 Commits
Dec 16, 2022
Dec 4, 2022
Dec 10, 2022
Dec 14, 2022
Dec 14, 2022
Dec 16, 2022
Dec 17, 2022
Dec 17, 2022
Dec 4, 2022
Dec 4, 2022
Dec 4, 2022
Dec 5, 2022
Dec 7, 2022
Dec 7, 2022
Dec 8, 2022
Dec 10, 2022
Dec 17, 2022
Dec 4, 2022
Dec 16, 2022
Dec 16, 2022

Repository files navigation

About This Repository

This repository contains the complete source code of my participation to the Advent of Code 2022.

All puzzles are solved through PHP.

Conventions

This project uses gitmoji for its commit messages.

Requirements

This source code has only been tested with PHP 8.1 and is not guaranteed to work on any other version.

How To Run

Each daily puzzle is stored in its own folder, and each step has its own PHP file.

For example, if you want to run the second puzzle of the third day, proceed as follows from the root folder of the directory:

cd Day\ 3
php day3-2.php

Running With Test Input

Each daily puzzle comes with two data sets: test and full input.

You can run the code using the test input like this:

php day3-2.php -- -test