diff options
author | emkael <emkael@tlen.pl> | 2017-01-04 20:51:23 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-04 20:56:23 +0100 |
commit | b8f32665d6c12ee1de86e16e9b92dc081c1b0091 (patch) | |
tree | 031fb1dbf1f4c786c38472bb0a31530f3831ecc9 | |
parent | 63ab18bb8903ddd8d88516fda450b815329ab357 (diff) |
Opponents' score includes current segment and cutoffs
-rw-r--r-- | ausbutler/interface.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |