blob: e050c4122082af19c59bf4763fb66d3e2a527a13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
module Scheduling
class RoundRobin
include Rails.application.routes.url_helpers
def initialize(tournament_stage)
@tournament_stage = tournament_stage
end
def create_matches
num_teams = (self.tournament.players.count/self.tournament.min_players_per_team).floor
num_matches = Float(num_teams/2)*(num_teams-1)
end
def match_finished(match)
end
def graph(current_user)
end
end
end
|