diff --git a/dungeonbattle/mapgeneration/randomwalk.py b/dungeonbattle/mapgeneration/randomwalk.py index 3c42559..f0527b5 100644 --- a/dungeonbattle/mapgeneration/randomwalk.py +++ b/dungeonbattle/mapgeneration/randomwalk.py @@ -37,6 +37,11 @@ class Walker: if 0 < nx < width and 0 < ny < height: self.x, self.y = nx, ny + def split(): + child = Walker(self.x, self.y) + child.dir = self.dir + return child + class Generator: