diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-27 23:26:24 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-27 23:26:24 -0400 |
commit | 1c37ae521e29a5e0869aba52d324ed0cd4a830a6 (patch) | |
tree | e4488ed3feb5e5dc94a72cd46cff2aeef0dcd1f8 /lib/seeding/random_seeding.rb | |
parent | 6cbf08bb7659dc3265b45d05a66170f1c69ce696 (diff) | |
parent | 4c572a775a7c28b102b4462af94214148e6df1d2 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/seeding/random_seeding.rb')
-rw-r--r-- | lib/seeding/random_seeding.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/seeding/random_seeding.rb b/lib/seeding/random_seeding.rb index 723d70e..36e06d6 100644 --- a/lib/seeding/random_seeding.rb +++ b/lib/seeding/random_seeding.rb @@ -7,7 +7,7 @@ module Seeding teams = 0 tournament.players.shuffle.each_slice(tournament.min_players_per_team) do |slice| if teams < tournament.min_teams_per_match - match.teams[teams].players += slice + match.teams.push Team.create(players: slice) teams += 1 else match_num += 1 |