Commit 013a57f7 authored by nanahira's avatar nanahira

Update src/tournament-rules/rules/swiss.ts

parent 65564b6c
Pipeline #39600 passed with stages
in 2 minutes and 32 seconds
...@@ -76,8 +76,10 @@ export class Swiss extends TournamentRuleBase { ...@@ -76,8 +76,10 @@ export class Swiss extends TournamentRuleBase {
if (this.participantRoundsMap) return this.participantRoundsMap; if (this.participantRoundsMap) return this.participantRoundsMap;
const map = new Map<number, Set<number>>(); const map = new Map<number, Set<number>>();
for (const match of this.tournament.matches) { const currentRounds = this.currentRoundCount();
for (const match of this.specificMatches(MatchStatus.Finished)) {
const round = match.round; const round = match.round;
if (round > currentRounds) continue;
if (!map.has(round)) { if (!map.has(round)) {
map.set(round, new Set()); map.set(round, new Set());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment