aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Part 1 of day 7 plus some thoughts on part 2Andreas Grois2021-12-131-0/+1
|
* Add day 6 solutions. Both, naive and more elaborate.Andreas Grois2021-12-111-0/+1
| | | | | | | | | | The naive implementation uses simple ring buffers and scales linearly with the number of days needed. The matrix based implementation uses matrix multiplication (implemented in a brain-dead way inline here) and has the same scaling behaviour, however implementing it showed that the matrix is correct. The closed form is, well, a closed form based on the matrix based solution, but working in the matrix' Eigenspace.
* First part of day 5Andreas Grois2021-12-081-0/+1
|
* First working (but ugly) day4, part 1 solution.Andreas Grois2021-12-061-0/+1
| | | | | | | | | Needs to be refactored. Game should be made an enum, that distinguishes between running and completed games. Completed games should only have their score as data, no more details. Methods should be limited to the respective variant. BingoGame should _not_ be made into an enum, as players might keep playing after the first one has won.
* First working day3 part 2 implementation. It sucks.Andreas Grois2021-12-041-0/+1
|
* Day 2 and some additional Day 1 solutionsAndreas Grois2021-12-021-0/+1
|
* InitialAndreas Grois2021-12-021-0/+5