Commit Graph

433 Commits

Author SHA1 Message Date
4e5b3b5a15 Implement generic testing for 2019.
This method reads a specific directory and applies all inputs there to
their proper implementation.
2019-09-12 14:51:17 +02:00
e26c90d54a Add initial test set-up. 2019-09-12 13:36:46 +02:00
5585bce297 Add boost to build. 2019-09-12 12:38:17 +02:00
11dd04ac82 Relax CMake requirement. 2019-09-12 12:33:26 +02:00
a7587240c6 Update travis script for 2019. 2019-09-12 12:30:46 +02:00
54c704a821 Cleaner runner. 2019-09-12 12:18:47 +02:00
5cead82bee Add timing code. 2019-09-12 12:08:46 +02:00
944e595b97 Wrong output variable. 2019-09-12 12:06:12 +02:00
62f3e4c5de Improve command line parser. 2019-09-12 11:43:46 +02:00
cd4c32c2a3 Initial set-up for 2019 AoC. 2019-09-12 11:16:03 +02:00
41d07fa419 Switch loop order for locality. 2019-08-22 12:42:46 +02:00
82dfff21e9 Fix other clippy warnings. 2019-08-22 12:32:07 +02:00
29b5dcdf62 Change signature for solution. 2019-08-22 12:28:52 +02:00
e949701564 Small simplification. 2019-02-19 15:38:11 +01:00
c4163824cc Implement 2016 day 22 part 2.
Only 2 years and 2 months later.
2019-02-19 15:28:32 +01:00
9ce03d40ca Implement 2016 day 22 part 1. Again. 2019-02-19 11:29:40 +01:00
374eda945b Reduce code duplication. 2019-02-18 15:39:41 +01:00
c16ef40d73 Correct formatting. 2019-02-18 15:13:48 +01:00
171d9fa2e9 Update to new itertools version 2019-02-18 15:08:36 +01:00
ec6a14a43b Add runtime graph. 2018-12-31 18:33:58 +01:00
2465dc4ead Add missing benchmarks. 2018-12-31 17:42:19 +01:00
d0b325ba6f Fix day 24 part 2. 2018-12-26 10:11:33 +01:00
20e7117b6c Clean up day 24.
Still doesn't give the right answer, but now it's more readable.
2018-12-25 14:54:34 +01:00
c05b486033 Fix inconsistency in day 23.
It works way better when you choose an optimal pivot.
2018-12-25 13:32:08 +01:00
ff36f15ae1 Implement day23 part 2. 2018-12-25 13:26:52 +01:00
22c71dc3f5 Implement day 25.
Part 2 was bonkers.
2018-12-25 11:28:58 +01:00
4a5bec0e7d Add incorrect implementation of day 24 part 2. 2018-12-25 10:53:05 +01:00
439cad4dc8 Implement day 24 part 1. 2018-12-24 08:57:42 +01:00
f78a602d38 Initial atempt at day24. 2018-12-24 08:42:13 +01:00
85538d2fc6 Implement day23 part 1. 2018-12-23 07:08:10 +01:00
a052d3a4fe Attempt to fix Ubuntu compat issue. 2018-12-22 10:53:51 +01:00
2f0c8ef2d4 Replace format("{}") with .to_string() where possible. 2018-12-22 10:07:14 +01:00
3b825ac933 Move manhattan metric function to trait. 2018-12-22 09:40:09 +01:00
ba321caa37 Include day 22 in benchmarks. 2018-12-22 08:57:05 +01:00
7837567119 Reasonable bounds. 2018-12-22 08:45:31 +01:00
db94abf9f7 Implement A* rather than Dijkstra. 2018-12-22 08:38:18 +01:00
a202faa7b5 Add more intelligent limits to the playing field. 2018-12-22 08:29:39 +01:00
655ce5af18 Implement day 22. 2018-12-22 08:15:53 +01:00
fb3196f95a Add missing input. 2018-12-22 05:54:20 +01:00
71c18e44e1 Implement day 21. 2018-12-21 13:55:39 +01:00
92e305db46 Allow better compiling from within the program. 2018-12-20 18:08:38 +01:00
8904485679 Implement a small elf-script to C transpiler. 2018-12-20 17:57:13 +01:00
1355a05d2c Implement day 20. 2018-12-20 14:21:20 +01:00
1424c5bfbd Slightly increase optimized section. 2018-12-19 12:30:02 +01:00
f5058453bf Benchmarking for day 19. 2018-12-19 11:58:31 +01:00
9d1fdc63c9 More cleanup. 2018-12-19 08:25:15 +01:00
68c5809e43 Update LOC. 2018-12-19 07:54:13 +01:00
c554811fda Clean up day 16 and 19.
Day 16 and 19 share the same CPU and now they actually share the same
code for it.
2018-12-19 07:53:09 +01:00
cb99849143 Implement day 19.
With nice hotspot optimization for part 2.
2018-12-19 07:12:46 +01:00
1e26ad1168 Correctness.
From::from may never fail, so I added an invalid state.
2018-12-18 20:00:40 +01:00