advent-of-code/2015/solutions.php
2024-11-24 21:22:12 -05:00

27 lines
762 B
PHP

<?php
$days = glob("./2015/days/*.php");
foreach ($days as $day) {
require($day);
}
$solutions = [];
/* $solutions['day_1']['part_1'] = day1solution1(); */
/* $solutions['day_1']['part_2'] = day1solution1b(); */
/* $solutions['day_2']['part_1'] = day2(1); */
/* $solutions['day_2']['part_2'] = day2(2); */
/* $solutions['day_3']['part_1'] = day3(1); */
/* $solutions['day_3']['part_2'] = day3(2); */
/* $solutions['day_4']['part_1'] = day4(1); */
/* $solutions['day_4']['part_2'] = day4(2); */
$solutions['day_5']['part_1'] = day5(1);
$solutions['day_5']['part_2'] = day5(2);
// OUTPUT THE SOLUTIONS WE HAVE.
foreach ($solutions as $day => $parts) {
foreach ($parts as $part => $answer) {
echo "*** The answer to $day $part is: $answer ***\n";
}
}