diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/seeding/fair_ranked_seeding.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/seeding/fair_ranked_seeding.rb b/lib/seeding/fair_ranked_seeding.rb index 2d0eeb4..4eb8c26 100644 --- a/lib/seeding/fair_ranked_seeding.rb +++ b/lib/seeding/fair_ranked_seeding.rb @@ -26,13 +26,7 @@ module Seeding def better(player1, player2, tournament) ps1 = previousScore(player1, tournament) ps2 = previousScore(player2, tournament) - if ps1 > ps2 - return 1 - elsif ps2 > ps1 - return -1 - else - return 0 - end + ps1 <=> ps2 end def previousScore(player, tournament) |