Skip to content
Snippets Groups Projects

Résolution branche cassée

Merged Le Bihan Camille requested to merge Fonctions-dans-ghost-encore into master
5 files
+ 37
16
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 4
4
class Blinky(Ghost) :
def decide_target(self, pos_x_pacman, pos_y_pacman):
super().decide_chase_target(pos_x_pacman, pos_y_pacman)
return super().decide_chase_target(pos_x_pacman, pos_y_pacman)
class Clyde(Ghost):
def decide_target(self):
super().decide_random_target()
return super().decide_random_target()
class Pinky(Ghost):
def decide_target(self, pos_x_pacman, pos_y_pacman, direction_pacman):
super().decide_ambush_target(pos_x_pacman, pos_y_pacman, direction_pacman)
return super().decide_ambush_target(pos_x_pacman, pos_y_pacman, direction_pacman)
class Inky(Ghost):
def decide_target(self, pos_x_pacman, pos_y_pacman, direction_pacman):
super().decide_ambush_target(pos_x_pacman, pos_y_pacman, direction_pacman)
return super().decide_ambush_target(pos_x_pacman, pos_y_pacman, direction_pacman)
Loading