Fixed syntax error in Walker.split

This commit is contained in:
Charles Peyrat 2020-12-07 00:18:32 +01:00
parent 32e6eab943
commit 2a1be4233b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Walker:
if 0 < nx < width and 0 < ny < height:
self.x, self.y = nx, ny
def split():
def split(self):
child = Walker(self.x, self.y)
child.dir = self.dir
return child