mirror of
https://github.com/taxicomics/PrisonersDilemma.git
synced 2026-08-26 15:34:26 +02:00
reworked presentation
This commit is contained in:
@@ -19,13 +19,13 @@ nr_of_games=300#int(input("How many games should be played?"))
|
||||
# Put YOUR functions down below
|
||||
#XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
function1=contenders.random_positive_leaner
|
||||
function2=contenders.i_hate_certain_numbers
|
||||
function2=contenders.random_negative_leaner
|
||||
|
||||
for i in range(nr_of_games):
|
||||
helper_functions.play_game( games,function1,function2,nr_of_rounds)
|
||||
scores.append(helper_functions.analyze_results(games))
|
||||
scores.append(helper_functions.analyze_results(games,len(scores)+1))
|
||||
games=[]
|
||||
|
||||
|
||||
print("Played "+str(nr_of_games)+ " games with "+str(nr_of_rounds)+" rounds each.")
|
||||
print("(A huge disparity of the average and median could hint at special behaviour)")
|
||||
helper_functions.analyze_scores(scores)
|
||||
Reference in New Issue
Block a user