Skip to content

Commit

Permalink
#9 increased underdog bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleVasya committed Dec 14, 2016
1 parent 307e991 commit e964b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ladder/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def add_scores(match):

mmr_diff = match.balance.teams[0]['mmr'] - match.balance.teams[1]['mmr']
underdog = 0 if mmr_diff <= 0 else 1
underdog_bonus = abs(mmr_diff) / 5
underdog_bonus = abs(mmr_diff) / 2

print 'mmr diff: %d' % mmr_diff
print 'underdog: %d' % underdog
Expand Down

0 comments on commit e964b0c

Please sign in to comment.