Commit Graph

18 Commits

Author SHA1 Message Date
cc9a6bcbc5 Coordinate.__mul__, Coordinate.__truediv__, Coordinate.__floordiv__ 2023-09-17 04:07:47 +02:00
ca4c67f805 some bug fixing around 3d grids 2022-12-25 05:19:57 +01:00
00de38a277 Coordinate.getNeighbours() and Grid.getNeighboursOf() can be generators; no need to create extra lists every time 2022-12-12 08:11:29 +01:00
5df82d2359 reversable coordinates; grid.print() can now mark important spots 2022-12-10 14:50:22 +01:00
Stefan Harmuth
c16bc0d1cf *real* start to hex coordinates 2022-11-29 20:37:46 +01:00
8e0b28159f waaaay better circles - also for 3d coords 2022-08-14 13:38:41 +02:00
3c5e27cf36 waaaay better circles 2022-08-14 13:36:55 +02:00
987a5bab28 better dealing with boundaries
getting circles (mind the FIXME)
2022-08-14 13:25:33 +02:00
f5d59cd74f cleanup 2022-08-07 19:36:48 +02:00
210d407bf9 remove class variables (should be instance variables) 2022-08-07 19:34:37 +02:00
Stefan Harmuth
a1eb51eb80 nicer reprs 2022-01-14 12:39:14 +01:00
Stefan Harmuth
1e1f5ef126 list comp is faster than building lists yourself 2022-01-14 12:29:54 +01:00
Stefan Harmuth
5e3bf28e7e deal with shapes (like squares and cubes) 2021-12-29 12:26: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
11604338e8 make things faster/cleaner 2021-12-15 11:30:30 +01:00
Stefan Harmuth
0b8a477184 implement Chebyshev/Chessboard distance algorithm 2021-12-13 07:39:08 +01:00
Stefan Harmuth
5c811280d7 move everything into a submodule to avoid namespace collisions 2021-12-07 06:30:52 +01:00