Commit Graph

199 Commits

Author SHA1 Message Date
1e43a2ff0d NEW: coordinate.Line() - only 2D for now, but can calc intersections 2023-12-24 12:14:47 +01:00
cc1fd86ede NEW: Coordinate() now accepts floats; what can possibly go wrong? 2023-12-24 12:13:58 +01:00
9386c40ea5 FIX: Coordinate.__new__(): return correct class instead of always Coordinate() (fucked up subclassing) 2023-12-23 09:44:36 +01:00
14d535911c NEW: Coordinate().__mod__() 2023-12-22 05:55:29 +01:00
fb3bef0153 Coordinate().getLineTo(): handle target == self 2023-12-18 16:38:11 +01:00
ffcc1e14c0 NEW tools.list_combinations_of_sum() - returns all possible tuples with len [length}, containing integers summing up to {total_sum} 2023-12-18 09:12:34 +01:00
1a111488ba FIX Coordinate().getLineTo() index bug 2023-12-18 09:11:06 +01:00
02623f8c9a NEW Grid.getRegion() -> Generator over all Coordinates of connected cells with the same value inside Grid borders 2023-12-18 07:00:05 +01:00
b2cc1e814c FIX Coordinate().getNeighbours() min/maxY
All checks were successful
Publish to PyPI / Publish to PyPI (push) Successful in 1m4s
FIX Coordinate() not hashable after implementing __eq__
2023-12-17 08:24:19 +01:00
42cbf6f85c Coordinate().__eq__: enable comparison with tuples 2023-12-17 07:21:00 +01:00
2bec56eb1c AOCDay.is_test() returns a bool, True if the solution for the current part/input_file is known; else False 2023-12-16 12:04:11 +01:00
f0e499f0a3 escape patterns want to be raw strings 2023-12-15 07:34:38 +01:00
1fb4582908 AOCDay._submit(): maybe display rank on correct answer? 2023-12-15 07:30:06 +01:00
2de9725adb Grid(): make use of the fact that Coordinate is a tupple for some speedups
All checks were successful
Publish to PyPI / Publish to PyPI (push) Successful in 1m18s
2023-12-14 16:18:25 +01:00
32c07d2913 Coordinate() now behaves more tupley-like (methods not accept tuples as parameters, including __add__ and __sub__) 2023-12-14 15:08:49 +01:00
0408432e3d Grid() is now hashable 2023-12-14 11:24:37 +01:00
f22c3bd798 Grid.isWithinBoundaries(): allow for boundary padding 2023-12-14 09:55:51 +01:00
c4b9b10b71 Grid.get_column() and Grid.get_row() 2023-12-13 06:37:24 +01:00
a47077f102 convey high/low hints if present
All checks were successful
Publish to PyPI / Publish to PyPI (push) Successful in 1m29s
2023-12-03 14:53:56 +01:00
db23b11a98 convey high/low hints if present 2023-12-03 14:51:57 +01:00
de8796d415 Grid.from_data() 2023-12-03 14:35:17 +01:00
af443c94b2 Grid.from_data() 2023-12-03 14:34:08 +01:00
e54e7afd6c mul() equivalent to sum() 2023-12-02 07:26:47 +01:00
12f3e58d85 make human readable time actually human readable 2023-12-01 17:29:24 +01:00
89edb0a6d7 getInput variant, that only returns integers from input lines 2023-12-01 07:37:25 +01:00
c2f6191d69 don't need to implement comparison dunders for Coordinate anymore as it now behaves like a tuple which already includes useful comparators
All checks were successful
Publish to PyPI / Publish to PyPI (push) Successful in 1m11s
2023-11-27 06:17:59 +01:00
6ab6df1bc9 setuptools is not a requirement 2023-11-12 19:35:40 +01:00
0daa028368 create inputs directory if it doesn't exist
All checks were successful
Publish to PyPI / Publish to PyPI (push) Successful in 1m11s
2023-11-12 19:12:29 +01:00
034c010635 dealing with requirements
Some checks reported warnings
Publish to PyPI / Publish to PyPI (push) Has been cancelled
2023-11-11 18:43:57 +01:00
cc1c884eef twine: verbose and point to dedicated config file
Some checks failed
Publish to PyPI / Publish to PyPI (push) Failing after 2h17m50s
2023-11-11 16:57:52 +01:00
66fe644fa7 call twine directly (hopefully get useful output)
Some checks failed
Publish to PyPI / Publish to PyPI (push) Failing after 31m57s
2023-11-11 16:19:16 +01:00
aadff7ef71 verbose publishing
Some checks reported warnings
Publish to PyPI / Publish to PyPI (push) Has been cancelled
2023-11-11 16:08:44 +01:00
f26559a5c2 just use the latest available python version for building and publishing
Some checks reported warnings
Publish to PyPI / Publish to PyPI (push) Has been cancelled
2023-11-11 15:47:56 +01:00
c0e79ccf6e reference correct github action for publishing
Some checks failed
Publish to PyPI / Publish to PyPI (push) Failing after 10s
2023-11-11 15:41:38 +01:00
99c4ef2ce6 code reformatting and cleanup
Some checks failed
Publish to PyPI / Publish to PyPI (push) Failing after 5s
2023-11-11 15:37:42 +01:00
bfcd27336d exclude pycharm ide env 2023-11-11 15:04:12 +01:00
455bd34d3b build/publish pipeline 2023-11-11 15:02:27 +01:00
b0c6986511 coordinates are essentially just tuples, so let's treat them as such. Double the speed for no cost :)
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 41s
2023-10-19 06:02:25 +02:00
bd31a062cc test new gitea 2023-10-19 05:13:33 +02:00
4602a48e48 test gitea actions 2023-09-24 16:03:44 +02:00
4f7bc129f9 test gitea actions 2023-09-24 16:00:32 +02:00
03a5b69f88 Merge remote-tracking branch 'leeloo/master' 2023-09-21 19:15:52 +02:00
41d7f7c0eb Initial commit 2023-09-21 16:20:47 +00:00
75013fbcdd Grid.move() 2023-09-17 04:08:00 +02:00
cc9a6bcbc5 Coordinate.__mul__, Coordinate.__truediv__, Coordinate.__floordiv__ 2023-09-17 04:07:47 +02:00
ec64dce347 int.sum_digits() 2023-07-08 14:12:25 +02:00
b0a8388a8b tools.Dict(): ansible template style dictionary with defaults 2023-02-25 14:29:54 +01:00
9f11e12bc4 Grid: a whole bunch of bugfixing around transformations and mode3d
Grid: added __eq__()
2022-12-25 18:36:37 +01:00
69a63c94f6 correctly calculate time left on wrong answer 2022-12-25 10:29:18 +01:00
ca4c67f805 some bug fixing around 3d grids 2022-12-25 05:19:57 +01:00