la till timeUntilTimeEnds

This commit is contained in:
linhara 2020-10-03 19:34:41 +02:00
parent ab936cdcf3
commit 2ef69e9c8d

View File

@ -3,16 +3,20 @@ import time
import sys import sys
from sys import exit from sys import exit
from game_layer import GameLayer from game_layer import GameLayer
import traceback
timeUntilRunEnds = 30
api_key = "74e3998d-ed3d-4d46-9ea8-6aab2efd8ae3" api_key = "74e3998d-ed3d-4d46-9ea8-6aab2efd8ae3"
# The different map names can be found on considition.com/rules # The different map names can be found on considition.com/rules
map_name = "training1" # TODO: You map choice here. If left empty, the map "training1" will be selected. map_name = "training1" # TODO: You map choice here. If left empty, the map "training1" will be selected.
game_layer = GameLayer(api_key) game_layer = GameLayer(api_key)
useTestStrategy = True usePrebuiltStrategy = False
def main(): def main():
#game_layer.force_end_game() #game_layer.force_end_game()
game_layer.new_game(map_name) game_layer.new_game(map_name)
print("Starting game: " + game_layer.game_state.game_id) print("Starting game: " + game_layer.game_state.game_id)