Basic playfield generation complete. Next up: randomization.
This commit is contained in:
@@ -52,3 +52,14 @@ class Left(Direction):
|
||||
def next_pos(pos):
|
||||
x, y = pos
|
||||
return x - 1, y
|
||||
|
||||
succ = {Up: Right,
|
||||
Right: Down,
|
||||
Down: Left,
|
||||
Left: Up}.__getitem__
|
||||
|
||||
pred = {Right: Up,
|
||||
Down: Right,
|
||||
Left: Down,
|
||||
Up: Left}.__getitem__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user