Skip to content
Snippets Groups Projects

bug indentation

Merged Persiani Raphael requested to merge move_to_flee_repare into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -114,6 +114,7 @@ class Ghost(Movable_character, Eatable, ABC) :
directions.remove(direction_to_avoid)
optimal_flee_direction = (direction_to_avoid[0]*(-1),direction_to_avoid[1]*(-1))
ghost_i,ghost_j=map_inst.conversion_coordonates_pygame_to_matrix(self.pos_x, self.pos_y)
if map_inst.grid[ghost_i+optimal_flee_direction[1]][ghost_j+optimal_flee_direction[0]] != 1:
return optimal_flee_direction
else :
directions.remove(optimal_flee_direction)
Loading