From b8f32665d6c12ee1de86e16e9b92dc081c1b0091 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 4 Jan 2017 20:51:23 +0100 Subject: Opponents' score includes current segment and cutoffs --- ausbutler/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ausbutler/interface.py') diff --git a/ausbutler/interface.py b/ausbutler/interface.py index dd58b76..5f194cd 100644 --- a/ausbutler/interface.py +++ b/ausbutler/interface.py @@ -48,8 +48,8 @@ class Interface(object): for opp_butler in butlers: if opp_butler.id in opps \ and (opp_butler.match < butler.match or \ - (opp_butler.match == butler.match and opp_butler.segment < butler.segment)): - averages[opp_butler.id]['sum'] += opp_butler.score + (opp_butler.match == butler.match and opp_butler.segment <= butler.segment)): + averages[opp_butler.id]['sum'] += opp_butler.cut_score averages[opp_butler.id]['count'] += opp_butler.board_count butler.opp_score = sum( [opp['sum'] / opp['count'] if opp['count'] > 0 else 0.0 -- cgit v1.2.3