Commit Graph

196 Commits

Author SHA1 Message Date
Stefan Harmuth
c2b36a0e73 Merge remote-tracking branch 'origin/master' 2022-01-14 10:19:36 +01:00
Stefan Harmuth
e239196065 starting linked lists 2022-01-14 10:19:30 +01:00
Stefan Harmuth
afefa8dcf0 use git if available 2021-12-29 12:27:50 +01:00
Stefan Harmuth
5e3bf28e7e deal with shapes (like squares and cubes) 2021-12-29 12:26:17 +01:00
Stefan Harmuth
c4cfd0b298 remove redundant printing 2021-12-29 09:49:58 +01:00
Stefan Harmuth
ed90adc75c stopwatch: deal with elapsed == 0 (for whatever reason) 2021-12-29 08:46:40 +01:00
Stefan Harmuth
c9f91bbd98 aoc.py: input cleanup
requirements!
2021-12-29 08:22:58 +01:00
Stefan Harmuth
6b5d3de95b allow stopwatch to return averages
fix AOCDay._submit()
2021-12-28 21:11:07 +01:00
Stefan Harmuth
082c61beca auto input-download and answer-submit 2021-12-28 12:51:26 +01:00
Stefan Harmuth
149da572c2 auto input-download and answer-submit 2021-12-28 12:50:37 +01:00
Stefan Harmuth
5df8926378 pythons round() behaves unexpected (for me at least) 2021-12-28 11:49:14 +01:00
Stefan Harmuth
4880c1bee2 Merge remote-tracking branch 'origin/master' 2021-12-27 17:33:58 +01:00
Stefan Harmuth
5a60b71139 updated AOCDay Interface; output exec_time seperately 2021-12-27 17:33:53 +01:00
Stefan Harmuth
117eeec768 updated AOCDay Interface 2021-12-27 16:29:46 +01:00
Stefan Harmuth
5bf2ec1c47 Grid.range[XYZ]: make ranges reverable 2021-12-25 06:48:17 +01:00
Stefan Harmuth
709b0f471b Coordinate order - not sure which comparison is the "correct" one - can't make up my mind 2021-12-22 09:25:50 +01:00
Stefan Harmuth
7656e90984 Coordinate order - not sure which comparison is the "correct" one 2021-12-22 08:44:15 +01:00
Stefan Harmuth
1e33dd6210 Merge remote-tracking branch 'origin/master' 2021-12-21 21:25:50 +01:00
Stefan Harmuth
b6bef1a78e Merge remote-tracking branch 'origin/master' 2021-12-21 10:08:24 +01:00
Stefan Harmuth
fa68aa6109 caching for when functools.cache() is not available (looking at you, pypy!) 2021-12-21 10:08:18 +01:00
Stefan Harmuth
3b0a6480a3 Grid.range[XYZ]: ability to pad the range
Grid.toggleGrid(): toggle everything!
Grid.getSum(): give correct sum even if the default is not 0
2021-12-20 08:30:19 +01:00
Stefan Harmuth
d8d7112098 Grid.transform() in 3D! 2021-12-19 16:26:50 +01:00
Stefan Harmuth
74df9e9287 general irc bot interface 2021-12-18 20:48:01 +01:00
Stefan Harmuth
898d4a8d85 auto-detect new users and my own user (libera RPL_WELCOME fuckup workaround) 2021-12-16 08:54:44 +01:00
Stefan Harmuth
a5df60e839 some irc servers refuse to adhere to standards ... 2021-12-16 08:38:15 +01:00
Stefan Harmuth
072ba02831 make things faster/cleaner 2021-12-15 11:49:14 +01:00
Stefan Harmuth
11604338e8 make things faster/cleaner 2021-12-15 11:30:30 +01:00
Stefan Harmuth
2c859033fd grid.getPath(): Use heap to ease finding smallest f_cost node 2021-12-15 11:09:58 +01:00
Stefan Harmuth
af2aea1a34 still trying to make grid.getPath() faster 2021-12-15 09:42:10 +01:00
Stefan Harmuth
235a545c70 grid.getPath(): allow for grid values to be movement/distance weights
also: lambdas are sloooooooow
2021-12-15 07:49:57 +01:00
Stefan Harmuth
1c83a41fd2 correct annotation 2021-12-14 22:14:39 +01:00
Stefan Harmuth
a507b004f9 allow getActiveCells() to return only one row/column
annotation/import fixed
2021-12-13 11:10:38 +01:00
Stefan Harmuth
e16c21b3bb Node() is not a list anymore 2021-12-13 07:44:21 +01:00
Stefan Harmuth
0b8a477184 implement Chebyshev/Chessboard distance algorithm 2021-12-13 07:39:08 +01:00
Stefan Harmuth
3c855e6749 range methods
better get()
allow print() to be useful with false/true grids
2021-12-13 07:19:27 +01:00
Stefan Harmuth
d5a278ceef a* (untested) 2021-12-13 06:18:25 +01:00
Stefan Harmuth
dfe5afb735 write json files readable 2021-12-13 05:08:35 +01:00
Stefan Harmuth
78e180871e accomodate for pypy 2021-12-12 17:58:03 +01:00
Stefan Harmuth
904caf85ae fibonacci without functools (to work in pypy) 2021-12-12 15:28:33 +01:00
Stefan Harmuth
d8bb8d8aba setup.py needs to be top level 2021-12-12 15:15:28 +01:00
Stefan Harmuth
ec059d5354 way better (and much quicker) solution to receive lines from sockets 2021-12-12 08:25:47 +01:00
Stefan Harmuth
d806c838c4 remove unnecessary int cast 2021-12-11 08:56:37 +01:00
Stefan Harmuth
4c56a767b2 more robust interface, keep track of users and channels 2021-12-11 08:53:44 +01:00
Stefan Harmuth
4ab6519321 annotation cleanup
add grid.mul() and grid.div()
2021-12-11 07:15:32 +01:00
Stefan Harmuth
7b52ce4fba codeline cleanup 2021-12-11 06:47:33 +01:00
Stefan Harmuth
abbf1c85e1 grid.Grid: finally add that stupid print() method I'm always writing for debugging
grid.Grid: add(), sub() and set() return what they've actually wrote to the cell
2021-12-11 06:45:24 +01:00
Stefan Harmuth
55a12f7dc8 don't assume what an "OFF_STATE" might be, use the supplied default instead 2021-12-09 06:20:57 +01:00
Stefan Harmuth
393e846926 import woes 2021-12-07 08:50:02 +01:00
Stefan Harmuth
eb63ba9e99 annotations, correct plural 2021-12-07 06:54:31 +01:00
Stefan Harmuth
c5d10980e9 relative import 2021-12-07 06:49:23 +01:00