def initialize_goal(self, dirImage, list_goals): # goal = gb.Goal('goal1', 10, 12, 'goal', False) # self.board.add(goal, 10, 12) i = 1 for g in list_goals: goal = gb.Goal(dirImage, 'goal' + str(i), g[0], g[1], 'goal' + str(i), False) self.board.add(goal, g[0], g[1]) i = i + 1
def initialize_goals(self): i = 1 for g in self.config["goal_coordinates"]: goal = gb.Goal('goal' + str(i), g[0], g[1], self.config) self.board.add(goal, g[0], g[1]) i += 1
def initialize_goal(self,dirImage,list_goals): # goal = gb.Goal('goal1', 10, 12, 'goal', False) # board.add(goal, 10, 12) for g in list_goals: goal = gb.Goal(dirImage,'goal1',g[0],g[1], 'goal', False) board.add(goal,g[0],g[1])