Ejemplo n.º 1
0
 def __backwards(self):
   return arena.opposing_direction_for(self.player.direction)
Ejemplo n.º 2
0
def valid_directions_for(subject_direction):
  return [
    direction for direction
    in list(arena.DIRECTIONS)
    if direction is not arena.opposing_direction_for(subject_direction)
  ]