- """Set player task to 'moveup' or 'movedown', finish player turn."""
- if not direction in {'UP', 'DOWN'}:
- raise ArgumentError('MOVE ARGUMENT MUST BE "UP" or "DOWN"')
- if direction == 'UP':
- self.world.player.set_task('moveup')
- else:
- self.world.player.set_task('movedown')
+ """Set player task to 'move' with direction arg, finish player turn."""
+ if direction not in {'UP', 'DOWN', 'RIGHT', 'LEFT'}:
+ raise ArgumentError('MOVE ARGUMENT MUST BE ONE OF: '
+ 'UP, DOWN, RIGHT, LEFT')
+ self.world.player.set_task('move', direction=direction)