Bram Schoenmakers
|
a81cb30df1
|
Add docstrings
|
2023-06-18 20:21:18 +02:00 |
|
Bram Schoenmakers
|
d062bb58bf
|
Replace mapc with dolist
|
2023-06-18 18:44:05 +02:00 |
|
Bram Schoenmakers
|
7ddbeba4d8
|
Started with shortest path algorithm
|
2023-04-18 13:01:26 +02:00 |
|
Bram Schoenmakers
|
b5f39e62e8
|
Started with day 12
|
2023-04-17 23:31:24 +02:00 |
|
Bram Schoenmakers
|
62dcde64ef
|
Remove test line
|
2023-04-17 16:43:21 +02:00 |
|
Bram Schoenmakers
|
7060a0e64f
|
Finished part 2 of day 11, use the least common multiple (lcm)
|
2023-04-17 16:42:03 +02:00 |
|
Bram Schoenmakers
|
ca8dbe1894
|
Add assignment day 2
|
2023-04-17 14:35:11 +02:00 |
|
Bram Schoenmakers
|
241d48e265
|
Use oref
|
2023-03-31 18:06:15 +02:00 |
|
Bram Schoenmakers
|
a7f075fec8
|
Split out the elements of the test function
|
2023-03-30 06:49:53 +02:00 |
|
Bram Schoenmakers
|
459ffefc9d
|
Do not drop worry level for day 11 part 2
|
2023-03-29 18:55:23 +02:00 |
|
Bram Schoenmakers
|
3e03da613f
|
Continue making worry drop configurable
|
2023-03-29 18:49:48 +02:00 |
|
Bram Schoenmakers
|
ecb33d5d88
|
Make the worry drop factor configurable
|
2023-03-29 18:10:25 +02:00 |
|
Bram Schoenmakers
|
ea87a8081f
|
Add answer for day 11 part 1
|
2023-03-29 17:56:59 +02:00 |
|
Bram Schoenmakers
|
467fc07f7c
|
Finalized implementation of day 11 part 1
|
2023-03-29 17:24:17 +02:00 |
|
Bram Schoenmakers
|
21b87bbec5
|
Write loop over monkeys to examine their items
|
2023-03-29 07:33:37 +02:00 |
|
Bram Schoenmakers
|
e7888d90b1
|
Generate a test function
|
2023-03-29 07:19:52 +02:00 |
|
Bram Schoenmakers
|
8a41d70eeb
|
Started with day 11
|
2023-03-29 07:10:41 +02:00 |
|
Bram Schoenmakers
|
bc676523fa
|
Refactored the code, gather pixels in let binds
|
2023-03-25 20:36:33 +01:00 |
|
Bram Schoenmakers
|
43fd200552
|
Implemented part 2 of day 10
|
2023-03-25 20:22:31 +01:00 |
|
Bram Schoenmakers
|
ccd45c60b0
|
Export code results (if any)
|
2023-03-25 19:49:09 +01:00 |
|
Bram Schoenmakers
|
103ddb73b6
|
Make the list represent the state of x after a cycle
|
2023-03-25 18:09:13 +01:00 |
|
Bram Schoenmakers
|
b826230615
|
Refactor to separate input parsing from calculating the day 1 solution
|
2023-03-24 07:14:03 +01:00 |
|
Bram Schoenmakers
|
f37ced7a2b
|
Put example instructions in separate variable
(for reuse).
|
2023-03-23 23:15:44 +01:00 |
|
Bram Schoenmakers
|
95f92b8e91
|
Fix value
|
2023-03-23 23:15:23 +01:00 |
|
Bram Schoenmakers
|
0197ac0855
|
Implemented day 10 part 1
|
2023-03-23 21:20:04 +01:00 |
|
Bram Schoenmakers
|
49080d288d
|
Start with day 10
|
2023-03-23 07:22:28 +01:00 |
|
Bram Schoenmakers
|
ebae67141e
|
Formatting
|
2023-03-22 22:58:05 +01:00 |
|
Bram Schoenmakers
|
34e35202a6
|
Remove clauses for straight moves
The result of a straight move is the same as taking the average of two
positions for each direction.
|
2023-03-22 22:47:03 +01:00 |
|
Bram Schoenmakers
|
8aa9a019cd
|
Add link
|
2023-03-22 21:51:04 +01:00 |
|
Bram Schoenmakers
|
cfab406481
|
Minor comment fix
|
2023-03-22 21:24:58 +01:00 |
|
Bram Schoenmakers
|
704efbf10e
|
Add answer for part 2
|
2023-03-22 21:23:01 +01:00 |
|
Bram Schoenmakers
|
1fee14b691
|
Fix test name
|
2023-03-22 21:21:32 +01:00 |
|
Bram Schoenmakers
|
da778868ec
|
Missed an operand
|
2023-03-22 21:21:22 +01:00 |
|
Bram Schoenmakers
|
8d570e7bae
|
Add tests for part 2
|
2023-03-22 21:18:13 +01:00 |
|
Bram Schoenmakers
|
cefb2bbbc3
|
Add case when distance is larger than 1 between two knots
This can happen for longer ropes and two knots are diagonally further
away from each other. Handle that case as well.
|
2023-03-22 21:17:16 +01:00 |
|
Bram Schoenmakers
|
3c232d4369
|
Rename tests
|
2023-03-22 21:17:04 +01:00 |
|
Bram Schoenmakers
|
3d1fb8004c
|
Move optional rope length parameter to outer function
|
2023-03-22 20:01:49 +01:00 |
|
Bram Schoenmakers
|
a138daaf1f
|
Update the positions of a rope of arbitrary length
|
2023-03-22 19:57:53 +01:00 |
|
Bram Schoenmakers
|
409df57c1f
|
More generalization
|
2023-03-22 07:24:24 +01:00 |
|
Bram Schoenmakers
|
fa0ee67ca4
|
Generalized day 9 to accomodate for arbitrary rope lengths
|
2023-03-22 07:16:58 +01:00 |
|
Bram Schoenmakers
|
b04d38f9c5
|
Calculate answer for the first part
|
2023-03-21 07:11:46 +01:00 |
|
Bram Schoenmakers
|
ded8c80777
|
Implement diagonal moves of the tail
|
2023-03-21 07:09:15 +01:00 |
|
Bram Schoenmakers
|
5b57c468a0
|
Remove stray line
|
2023-03-21 06:46:28 +01:00 |
|
Bram Schoenmakers
|
b510f613d6
|
Add comments
|
2023-03-21 06:46:20 +01:00 |
|
Bram Schoenmakers
|
a4655f2ff4
|
Test small diagonal move
|
2023-03-21 06:41:25 +01:00 |
|
Bram Schoenmakers
|
64b699969c
|
Implement straight moves of the rope head
|
2023-03-21 06:39:23 +01:00 |
|
Bram Schoenmakers
|
2308492d10
|
Start with day 9
|
2023-03-19 23:07:41 +01:00 |
|
Bram Schoenmakers
|
cb08faf6c5
|
Add comments
|
2023-03-18 18:23:29 +01:00 |
|
Bram Schoenmakers
|
2075469e2d
|
Add answer for day 8 part 2
|
2023-03-18 18:09:14 +01:00 |
|
Bram Schoenmakers
|
ade984a4d2
|
Fix implementation for day 8 part 2
|
2023-03-18 18:04:53 +01:00 |
|