def evaluate_strategy(s, n_players, evaluation_times): scores = [] for i in xrange(evaluation_times): game = Game(n_players) game.strategy = s score = game.play() scores.append(score) return scores
def test_strategy(s, n_players): game = Game(n_players, interactive=True) game.strategy = s score = game.play() print "final score: ", str(score)