diff options
author | Anthony Wang | 2021-06-04 16:52:10 +0000 |
---|---|---|
committer | Anthony Wang | 2021-06-04 16:52:10 +0000 |
commit | 0e46ee10beeeb89472618ed15adeb661102896ae (patch) | |
tree | 432c32de45e6bc80c8d1aeb594ac05ee2646f6aa | |
parent | 82f17266b91ae9fb943da77e927f5cd5e17eee6f (diff) |
Add more stupid strategy ideas
-rw-r--r-- | python-algo/algo_strategy.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python-algo/algo_strategy.py b/python-algo/algo_strategy.py index 97457b5..0ef3d3f 100644 --- a/python-algo/algo_strategy.py +++ b/python-algo/algo_strategy.py @@ -79,8 +79,10 @@ class AlgoStrategy(gamelib.AlgoCore): # Now build reactive defenses based on where the enemy scored self.build_reactive_defense(game_state) - if game_state.turn_number % 2 == 0: - game_state.attempt_spawn(SCOUT, [11, 2], game_state.number_affordable(SCOUT)) + if game_state.turn_number % 4 == 0: + game_state.attempt_spawn(SCOUT, [16, 2], game_state.number_affordable(SCOUT)) + elif game_state.turn_number % 4 == 2: + game_state.attempt_spawn(INTERCEPTOR, [16, 2], game_state.number_affordable(INTERCEPTOR)) ''' # If the turn is less than 5, stall with interceptors and wait to see enemy's base @@ -116,7 +118,7 @@ class AlgoStrategy(gamelib.AlgoCore): # More community tools available at: https://terminal.c1games.com/rules#Download # Place turrets that attack enemy units - turret_locations = [[0, 13], [2, 13], [4, 13], [6, 13], [8, 13], [10, 13], [12, 13], [15, 13], [17, 13], [21, 13], [23, 13], [25, 13], [27, 13]] + turret_locations = [[0, 13], [2, 13], [4, 13], [6, 13], [10, 13], [12, 13], [15, 13], [17, 13], [19, 13], [21, 13], [23, 13], [25, 13], [27, 13]] # attempt_spawn will try to spawn units if we have resources, and will check if a blocking unit is already there game_state.attempt_spawn(TURRET, turret_locations) |