wrapper så man kan köra många games i rad (ej paralaliserad)

This commit is contained in:
Thefeli73 2020-10-05 18:28:59 +02:00
parent 36521b7bf7
commit c2d40778f0
2 changed files with 8 additions and 1 deletions

7
launcher.py Normal file
View File

@ -0,0 +1,7 @@
import main
number_of_launches = 6
result_list = []
for i in range(number_of_launches):
result_list.append(main.main())
for result in result_list:
print("Game " + result[0] + " had a score of: " + str(result[1]))

View File

@ -48,7 +48,7 @@ def main():
exit()
print("Done with game: " + game_layer.game_state.game_id)
print("Final score was: " + str(game_layer.get_score()["finalScore"]))
return (game_layer.game_state.game_id, game_layer.get_score()["finalScore"])
def take_turn():
if not usePrebuiltStrategy: