mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
31 lines
377 B
Ruby
31 lines
377 B
Ruby
class Pool
|
|
def onePool(wrestlers,weight_id,tournament)
|
|
wrestlers.each do |w|
|
|
w.isWrestlingThisRound?(1)
|
|
end
|
|
|
|
end
|
|
|
|
|
|
def twoPools(wrestlers)
|
|
|
|
end
|
|
|
|
|
|
def fourPools(wrestlers)
|
|
|
|
end
|
|
|
|
|
|
|
|
def createMatch(w1,w2,round,tournament)
|
|
|
|
@match = Match.new
|
|
@match.r_id = w1
|
|
@match.g_id = w2
|
|
@match.round = round
|
|
@match.tournament_id = tournament
|
|
@match.save
|
|
end
|
|
|
|
end |