def strategy(self, game_state): # Defence build_defences(game_state, self.units) # Offense if game_state.turn_number > 3: emp_location = [[23, 9]] game_state.attempt_spawn(EMP, emp_location, 1000)
def strategy(self, game_state): # Defence build_defences(game_state, self.units) # Offense if game_state.turn_number > 3: emp_location = [[23, 9]] game_state.attempt_spawn(EMP, emp_location, 1000) # Dynamic defence if len(self.scored_on_locations) > 0: build_reactive_defense(gamelib, game_state, self.units, self.scored_on_locations)
def strategy(self, game_state): # Initial wall defence # Adaptive opening side selection filter_locs, self.is_right_opening = build_defences_with_adaptive_opening( game_state, self.units, self.is_right_opening, self.filter_locs) if game_state.turn_number > 3: # Defence build_defences(game_state, self.units, self.is_right_opening, filter_locs) # Offense if self.is_right_opening: emp_location = [[4, 9]] else: emp_location = [[23, 9]] game_state.attempt_spawn(EMP, emp_location, 1000)