Commit Graph

12 Commits

Author SHA1 Message Date
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
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
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
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
5c811280d7 move everything into a submodule to avoid namespace collisions 2021-12-07 06:30:52 +01:00