Basic playfield generation complete. Next up: randomization.

This commit is contained in:
Niels Serup
2012-08-07 15:26:16 +02:00
parent 775e4a72a8
commit d912fccac7
3 changed files with 115 additions and 9 deletions

View File

@@ -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__