ozfortress / tournament-system

A ruby gem that implements various tournament systems.
MIT License
18 stars 8 forks source link

Fix logic bug in Dutch cost function #14

Open pieterjongsma opened 3 years ago

pieterjongsma commented 3 years ago

Without this fix, the code seems to be interpreted as

state.scores[home_team] OR 0 - state.scores[away_team] or 0

instead of the intended

state.scores[home_team] || 0 OR state.scores[away_team] || 0