Commit Graph

166 Commits

Author SHA1 Message Date
Stefan Harmuth
b8e54f51f5 better compare(), especially now it's doing what's expected (and documented) 2021-12-02 05:17:29 +01:00
Stefan Harmuth
5e3d5d1156 streamline input getting 2021-12-01 02:49:15 +01:00
Stefan Harmuth
70dd7657ec tools.compare(): a <> b => -1/0/1
aoc.printSolution(): better readable test output
2021-12-01 02:30:04 +01:00
Stefan Harmuth
91e2477328 welcome to the 3D world 2021-11-30 13:24:05 +01:00
Stefan Harmuth
0c0a9a7eb1 grid transformations 2021-11-30 12:46:25 +01:00
Stefan Harmuth
37211190dd add/sub coordinates 2021-11-30 12:11:36 +01:00
Stefan Harmuth
02b4f869b9 angling away 2021-11-30 01:02:57 +01:00
Stefan Harmuth
fc0178288e Coordinate.generate(): get list of coordinates from x1,y1 to x2,y2
Grid(): expose boundaries
Grid.isWithinBoundaries(): check if Coordinate is within boundaries
Grid.getActiveCells(): get all Coordinates within Grid() with a value
2021-11-29 16:40:01 +01:00
Stefan Harmuth
6bf5835488 output reorder 2021-11-27 17:03:42 +01:00
Stefan Harmuth
263b343b24 having fun with paths 2021-11-26 07:53:56 +01:00
Stefan Harmuth
96dbd7a323 don't treat whole repo as a single package 2021-11-26 07:33:38 +01:00
Stefan Harmuth
2713c66a34 move aoc thingy from year-by-year to central tool lib 2021-11-26 07:30:06 +01:00
Stefan Harmuth
78b5f7b6c8 setup.py 2021-11-21 13:27:49 +01:00
Stefan Harmuth
8221403ed0 grids \o/ 2021-10-22 18:46:28 +02:00
Stefan Harmuth
abcc9f32e4 __init__ 2021-10-22 17:35:30 +02:00
Stefan Harmuth
fb30236fd8 coordinates \o/ 2021-10-22 17:35:00 +02:00