Skip to content

Commit

Permalink
Merge branch 'release/1.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
asflierl committed Jun 13, 2019
2 parents 15690cd + 8660d60 commit 9e0a002
Show file tree
Hide file tree
Showing 15 changed files with 4,619 additions and 60 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: scala
scala:
- 2.12.5
- 2.11.12
- 2.13.0
jdk:
- oraclejdk8
- openjdk11
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ A small, simple & self-contained implementation of the [Glicko-2 rating algorith

### Setup

Version 1.5 is currently available for Scala 2.11 and 2.12. The last version to support Scala 2.10 was 1.3. To use this library in your [SBT](http://scala-sbt.org) project, add the following to your build definition:
Version 1.6 is currently available for Scala 2.13. The last version to support Scala 2.11 and 2.12 was 1.5. The last version to support Scala 2.10 was 1.3. To use this library in your [SBT](http://scala-sbt.org) project, add the following to your build definition:

```scala
resolvers += "jcenter" at "http://jcenter.bintray.com"
libraryDependencies += "sglicko2" %% "sglicko2" % "1.5"
libraryDependencies += "sglicko2" %% "sglicko2" % "1.6"
```

### Usage
Expand All @@ -19,15 +19,15 @@ Here's a simple, runnable example on how the library can be used:
import sglicko2._, EitherOnePlayerWinsOrItsADraw._

object Example extends App {
val glicko2 = new Glicko2[Symbol, EitherOnePlayerWinsOrItsADraw]
val glicko2 = new Glicko2[String, EitherOnePlayerWinsOrItsADraw]

val ratingPeriod = glicko2.newRatingPeriod.withGames(
('Abby, 'Becky, Player1Wins),
('Abby, 'Chas, Player1Wins),
('Abby, 'Dave, Player1Wins),
('Becky, 'Chas, Player2Wins),
('Becky, 'Dave, Draw),
('Chas, 'Dave, Player2Wins))
("Abby", "Becky", Player1Wins),
("Abby", "Chas", Player1Wins),
("Abby", "Dave", Player1Wins),
("Becky", "Chas", Player2Wins),
("Becky", "Dave", Draw),
("Chas", "Dave", Player2Wins))

val leaderboard = glicko2.updatedLeaderboard(glicko2.newLeaderboard, ratingPeriod)

Expand Down
Loading

0 comments on commit 9e0a002

Please sign in to comment.