Commit 3dffdc24 authored by David Wrobel's avatar David Wrobel
Browse files

Update Icewalker.py

parent 9c660e39
......@@ -8,10 +8,8 @@ class IceWalker():
def undo(self):
if self.played != []:
anti_coup = {'N' : 'S', 'E' : 'W', 'S' : 'N', 'W' : 'E'}
coup = self.played.pop()
self.grid.move_player_at_coord(coup[0], anti_coup[coup[1]])
self.grid.move_player_at_coord(coup[0], coup[1])
def play(self, name = 'David'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment