Commit Graph

155 Commits

Author SHA1 Message Date
1e51012d5e Implement day 4.
Nice code-reuse between 1 and 2. I'm not accustomed to this.
2018-12-04 13:41:45 +01:00
9a0f24d6bb Implement day 3.
Wasted way too much trying to do this cleverly.
2018-12-03 10:41:38 +01:00
fd5af9245b Implement day 2.
Part two was weird.
2018-12-02 10:36:45 +01:00
e4e4432810 Add travis button. 2018-12-01 13:37:33 +01:00
3bbe6a479a Implement day 1 2018.
We've started.
2018-12-01 11:03:48 +01:00
c41099d9d5 Implement day 11.
Whelp, this was really annoying.
2018-11-30 16:39:42 +01:00
48db1dde39 Simplify the "find" operation. 2018-11-30 14:13:58 +01:00
2ec8dddb66 Reimplement day 21. 2018-11-30 13:59:53 +01:00
b570821c8a Properly use the never type. 2018-11-29 17:01:01 +01:00
d02fd49bd6 Clean up tests 2018-11-29 16:58:51 +01:00
fccb7d28ad Fix some warnings. 2018-11-29 16:56:52 +01:00
57b2981a15 Reimplement day 2. 2018-11-29 16:55:51 +01:00
80328015d2 Implement day 25. 2018-11-29 16:31:57 +01:00
a104356b6f Slightly nicer day parsing. 2018-11-22 16:39:53 +01:00
8d1baf1e8d CI building for more rust versions. 2018-11-22 16:26:17 +01:00
37f9e696bc Implement day 24. 2018-11-22 15:59:51 +01:00
b35d785d69 Implement day 23.
Could use some optimization, but it works.
2018-11-14 12:50:53 +01:00
0132627341 Move Assembunny CPU to common. 2018-11-14 12:09:03 +01:00
1d6edda98b Actually commit the implementation. 2018-11-13 11:54:56 +01:00
be8be856ac Implement day 16. 2018-11-13 11:51:43 +01:00
8910dbe072 Generify gcd/lcm. 2018-11-12 15:52:21 +01:00
6ad8f4cb56 Implement day 15 of 2016. 2018-11-12 15:22:37 +01:00
42d075f8f4 Update 2018 skeleton. 2018-11-12 13:18:16 +01:00
9aff05d296 Rewrite old code into 2018 style.
Nice test for my 2018 repo set up. Which turns out needs some tweaking.
2018-11-12 13:13:03 +01:00
71eb13f52d Set up for AoC 2018. 2018-11-09 16:11:08 +01:00
7e9dff9be6 Add a script to time all days. 2018-01-27 22:25:25 +01:00
fc2c0e245d Makefile for automated running of swift. 2018-01-27 22:24:49 +01:00
a751456596 Fix Haskell compilation on Arch Linux. 2017-12-27 19:10:40 +01:00
2939822329 Add missing input for day 14. 2017-12-27 13:45:27 +01:00
2621197d98 Fix lack of executable for matlab. 2017-12-27 13:26:02 +01:00
0881ca5789 Fix bullet point in README. 2017-12-27 11:57:52 +01:00
41d5d9d6e9 Slightly more consise reading logic. 2017-12-25 16:51:52 +01:00
fb8e091a34 Implement day 25, in python 2017-12-25 10:56:51 +01:00
2e95da9bdc Forgot to add input. 2017-12-24 12:45:34 +01:00
9e46be0f82 Implement day 24, in java. 2017-12-24 12:27:57 +01:00
93734da352 Solution to day 23, in C. 2017-12-23 11:40:44 +01:00
63744509d5 Make most solutions work with make or shebang. 2017-12-22 16:56:58 +01:00
2a35384c76 Solve day 22, in Julia.
Only know programming languages left!
2017-12-22 16:15:32 +01:00
e3ee6aefe1 Apparantly, part 1 is fast enough for part 2. 2017-12-21 14:46:16 +01:00
4276edc6ef Part 1 for day 21. 2017-12-21 13:55:55 +01:00
eee1f48629 Slightly more consise update step. 2017-12-20 15:08:25 +01:00
a9034c9208 Use correct assignment operators. 2017-12-20 14:24:35 +01:00
f8cfe6dfa9 Add implementation for part 2. 2017-12-20 14:18:32 +01:00
bb8c0e0658 Solution to day 20 part 1. 2017-12-20 14:01:09 +01:00
9b0f2cfdb5 Even simpler bounds check. 2017-12-19 10:19:37 +01:00
bbf8ad85e4 Slightly simpler bounds check. 2017-12-19 10:16:24 +01:00
c1e8d32cd0 Implement day 19, in PHP. 2017-12-19 10:11:51 +01:00
f28a983133 More improvements, because lua can do some things:
- Remove manual bookkeeping of array size
- Remove duplicate 'snd' instruction
- Instructions start at 1 now, I guess
2017-12-18 16:30:25 +01:00
432fc46a2b Clean up Lua code.
- Refactor ALU to a single function to be reused
- Abstract registers out of a global variable into a function argument
- Use proper table initialisations
- Accept that LUA starts arrays at 1. Partially.
2017-12-18 15:18:39 +01:00
80bf90c034 Slight performance improvement.
Only need to check whether the current program is blocked, since the
other will have switched if it was going to block.
2017-12-18 14:05:00 +01:00