Finalised implementation of the walker class with method split
This commit is contained in:
parent
a5c53c898e
commit
bc9c7cd7f7
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue