1
0

selftest on admin page (WIP)

This commit is contained in:
2020-01-19 01:22:06 +01:00
parent 86648149e5
commit 335fc764e8
16 changed files with 540 additions and 58 deletions

View File

@@ -45,6 +45,13 @@ class AdventOfCode
return $this->staticData;
}
public function listAllDays()
{
$r = [];
foreach ($this->staticData as $yeardata) foreach ($yeardata as $year => $daydata) $r []= $daydata;
return $this->staticData;
}
public function listSingleYear($year)
{
return $this->staticData[$year];
@@ -84,6 +91,7 @@ class AdventOfCode
$a['file_challenge'] = (__DIR__ . '/../../statics/aoc/'.$year.'/'.$n2p.'_challenge.txt');
$a['file_input'] = (__DIR__ . '/../../statics/aoc/'.$year.'/'.$n2p.'_input.txt');
$a['year'] = $year;
$a['date'] = $year . '-' . 12 . '-' . $n2p;
$solutionfiles = [];