Skip to content

Commit

Permalink
Fix ties for elimination check
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Apr 18, 2024
1 parent 611931d commit 0d6ffe3
Show file tree
Hide file tree
Showing 3 changed files with 2,997 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/hockey.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ module.exports = (robot) => {
if (lastWildcard.points > maxPoints) {
return true;
}
if (lastWildcard.points === maxPoints) {
if (team.regulationWins < lastWildcard.regulationWins) {
return true;
}
if (team.regulationPlusOtWins < lastWildcard.regulationPlusOtWins) {
return true;
}
}
return false;
};

Expand Down

0 comments on commit 0d6ffe3

Please sign in to comment.