Stefan Harmuth
37166532ae
grid.Grid: introduce rudimentary 3d support
2021-12-05 08:21:26 +01:00
Stefan Harmuth
75c7df6f19
useless list comprehension is useless
2021-12-05 07:53:17 +01:00
Stefan Harmuth
122f1e768e
grid.Grid(): let set() not track default values not present in OFF_STATES
2021-12-05 06:46:43 +01:00
Stefan Harmuth
e2d36cbde6
grid.Grid: let add() and sub() use self.set() instead of reimplementing part of it. Also makes sure default values aren't part of the dict anymore.
2021-12-05 06:45:35 +01:00
Stefan Harmuth
da791d3ec5
Grid.set() sets pos to True by default
2021-12-03 17:01:19 +01:00
Stefan Harmuth
0c0a9a7eb1
grid transformations
2021-11-30 12:46:25 +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
96dbd7a323
don't treat whole repo as a single package
2021-11-26 07:33:38 +01:00
Stefan Harmuth
8221403ed0
grids \o/
2021-10-22 18:46:28 +02:00