From 1b9b71586ec467a67b0b51be853432fb626edff5 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Sat, 9 May 2020 14:18:19 -0600 Subject: [PATCH] swiss bye gives a full point --- app/views/swiss/home.scala | 6 +++--- modules/swiss/src/main/PairingSystem.scala | 2 +- modules/swiss/src/main/SwissSheet.scala | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/swiss/home.scala b/app/views/swiss/home.scala index c568b8a3f8..2a2cac02dd 100644 --- a/app/views/swiss/home.scala +++ b/app/views/swiss/home.scala @@ -106,7 +106,7 @@ object home { strong("How are points calculated?"), "A win is worth one point, a draw is a half point, and a loss is zero points.", br, - "When a player can't be paired during a round, they receive a bye worth a half point" + "When a player can't be paired during a round, they receive a bye worth one point." ) ), div(cls := "faq")( @@ -157,9 +157,9 @@ object home { i("?"), p( strong("How many byes can a player get?"), - "A player gets a bye every time the pairing system can't find a pairing for them.", + "A player gets a bye of one point every time the pairing system can't find a pairing for them.", br, - "Additionally, a single bye is attributed when a player late-joins a tournament." + "Additionally, a single bye of half a point is attributed when a player late-joins a tournament." ) ), div(cls := "faq")( diff --git a/modules/swiss/src/main/PairingSystem.scala b/modules/swiss/src/main/PairingSystem.scala index 3b3378bc0b..c55ca7e20f 100644 --- a/modules/swiss/src/main/PairingSystem.scala +++ b/modules/swiss/src/main/PairingSystem.scala @@ -79,7 +79,7 @@ final private class PairingSystem(executable: String) { outcome match { case Absent => "-" case Late => "H" - case Bye => "H" + case Bye => "F" case Draw => "=" case Win => "1" case Loss => "0" diff --git a/modules/swiss/src/main/SwissSheet.scala b/modules/swiss/src/main/SwissSheet.scala index b2369d2691..48f2e90ce6 100644 --- a/modules/swiss/src/main/SwissSheet.scala +++ b/modules/swiss/src/main/SwissSheet.scala @@ -21,9 +21,9 @@ private object SwissSheet { def pointsFor(outcome: Outcome) = outcome match { - case Win => 2 - case Late | Bye | Draw => 1 - case _ => 0 + case Win | Bye => 2 + case Late | Draw => 1 + case _ => 0 } def many(