Skip to content

Commit

Permalink
Merge pull request lichess-org#613 from isaacl/scalalib-11.3.1
Browse files Browse the repository at this point in the history
Upgrade scalachess and scalalib
  • Loading branch information
ornicar authored Oct 18, 2024
2 parents 722160c + 9513cf1 commit 595527d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ val arch_ = arch.replace("-", "_")
val pekkoVersion = "1.1.2"
val kamonVersion = "2.7.5"
val nettyVersion = "4.1.114.Final"
val chessVersion = "16.2.10"
val chessVersion = "16.3.2"

lazy val `lila-ws` = project
.in(file("."))
Expand All @@ -37,7 +37,7 @@ lazy val `lila-ws` = project
.classifier(s"linux-$arch_"),
("io.netty" % s"netty-transport-native-kqueue" % nettyVersion)
.classifier(s"osx-$arch_"),
"org.lichess" %% "scalalib-lila" % "11.2.9",
"org.lichess" %% "scalalib-lila" % "11.3.1",
"org.lichess" %% "scalachess" % chessVersion,
"org.lichess" %% "scalachess-play-json" % chessVersion,
"org.apache.pekko" %% "pekko-actor-typed" % pekkoVersion,
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/evalCache/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ val MAX_PV_SIZE = 10
val MAX_MULTI_PV = MultiPv(5)

opaque type Knodes = Int
object Knodes extends OpaqueInt[Knodes]:
object Knodes extends RelaxedOpaqueInt[Knodes]:
extension (a: Knodes)
def intNodes: Int =
val nodes = a.value * 1000d
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ case class Position(lastUci: Uci, fen: Fen.Board, clock: Option[Clock], turnColo
def fenWithColor = fen.andColor(turnColor)

opaque type MultiPv = Int
object MultiPv extends OpaqueInt[MultiPv]
object MultiPv extends RelaxedOpaqueInt[MultiPv]

opaque type Depth = Int
object Depth extends OpaqueInt[Depth]
object Depth extends RelaxedOpaqueInt[Depth]

0 comments on commit 595527d

Please sign in to comment.