From 65fa2622c6bda201ea8e57a02ebc9797ae41ab21 Mon Sep 17 00:00:00 2001 From: taxicomics <168220579+taxicomics@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:39:24 +0000 Subject: [PATCH] added lions magic --- __pycache__/helper_functions.cpython-310.pyc | Bin 1672 -> 1806 bytes helper_functions.py | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/__pycache__/helper_functions.cpython-310.pyc b/__pycache__/helper_functions.cpython-310.pyc index 7885ac06e963e334ba3b9fe8af37120e189e133f..4e4d92cf9862c357a717c31d40cdde8f6726adb1 100644 GIT binary patch delta 252 zcmeC+?c?Li=jG*M0D_$YI%(D%8~M~3IXTQ3YB_2+Q+OuZG0JlCKzSUSQy9N8F@BmH z#j@3@gsFtNgsp}Z2-(CLq#07!nwgpzQ`p5Bni&}xpt2x&WLXY~Yzjj#gC^%>QPx1m zmrOvLtE3eIauO?3ixdnM0#b{TQ}ap`^3xOo@-y>FiV>1Vn39_8lQUQ~*l)2G<(KBA rOrF5n!>BY_mQ7wxiBXPGiLpo&Xu2j#kuZ=d;s+6eAVPF<7@H9Q-=I5R delta 117 zcmeC<>)_?f=jG*M0D>xJowTj&8~M~3IeE+(YB_2+Q#dBuG0JjsKzTfyQy9N8F>ae2 z#j=$xg&~+hlWlS!YakPldd#XZS%|HNQEu{lHhC#E#v);$ftoBuLO`mBA4CX(2;s?h G*o*+p5g4)n diff --git a/helper_functions.py b/helper_functions.py index 378d4f7..b8bda86 100644 --- a/helper_functions.py +++ b/helper_functions.py @@ -24,11 +24,11 @@ def analyze_results(game_data,game_nr): p_1_points+=3 p_2_points+=3 elif i[0] and i[1]==False: - p_1_points+=5 - p_2_points+=0 - elif i[1] and i[0]==False: p_1_points+=0 p_2_points+=5 + elif i[1] and i[0]==False: + p_1_points+=5 + p_2_points+=0 elif i[0]==False and i[1]==False: p_1_points+=1 p_2_points+=1 @@ -64,4 +64,5 @@ def analyze_scores(score_table): average_score_p_2=p2_sum/len(score_table) print(str(average_score_p_1)+" AVG Player 1 Score |"+str(statistics.median(all_p1_scores))+" Median Player 1 Score") print(str(average_score_p_2)+" AVG Player 2 Score |"+str(statistics.median(all_p2_scores))+" Median Player 1 Score") - #print(score_table) \ No newline at end of file + print(str(round(p1_sum/(p1_sum+p2_sum),2))+ " Player 1 Percent of Points") + print(str(round(p2_sum/(p1_sum+p2_sum),2))+ " Player 2 Percent of Points") \ No newline at end of file