-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
foundations for rating color advantage
Before changing the implementation to use the color advantage, the implementer should start with adding tests to test-kit/src/test/scala/rating/glicko/impl/RatingCalculatorWithColorAdvantageTest.scala ```sh sbt project testKit ~testQuick chess.rating.glicko.* ```
- Loading branch information
Showing
5 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
test-kit/src/test/scala/rating/glicko/GlickoCalculatorWithColorAdvantageTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package chess.rating.glicko | ||
|
||
import cats.syntax.all.* | ||
import munit.ScalaCheckSuite | ||
|
||
class RatingCalculatorWithColorAdvantageTest extends ScalaCheckSuite with chess.MunitExtensions: | ||
|
||
val smallAdvantage = GlickoCalculator( | ||
Tau.default, | ||
RatingPeriodsPerDay.default, | ||
ColorAdvantage(7d) | ||
) | ||
|
||
// test that the rating calculator correctly applies the color advantage |