A short session Friday, another Saturday, and we have Cell disconnected from it container. A triumph of small steps! Friday AM This morning’s session will be short, as I have to leave at about 0800 for an appointment. Might work when I return, might not. What can we do in a half hour or less? I think there is just one use of current, the shim from Cell to DungeonLayout that has allowed us to remove the space / layout member from the instances, as we move capability from Cell to Layout or elsewhere, inch by inch, step by step, Niagara Falls! The current use of current is here: class Cell: @property def neighbors(self): from dungeonlayout import current return current.neighbors(self) We’re green and clean. That method claims to have seven users, one of them in Cell itself, one in DungeonLayout(!), one in Flooder, the others in tests. Fix the one in DungeonLayout. def path_map(self, source, can_use, randomness=0.0): reached: dict[Cell, Cell|None] = {source: None} for c, _ in…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.