fix: correct syntax for legalMoves method call in ChessBoardView
Build & Test (NowChessSystems) TeamCity build finished

This commit is contained in:
2026-04-12 19:28:02 +02:00
parent 50db403be8
commit ba3ae54409
@@ -198,7 +198,7 @@ class ChessBoardView(val stage: Stage, private val engine: GameEngine) extends B
selectedSquare = Some(clickedSquare)
highlightSquare(rank, file, PieceSprites.SquareColors.Selected)
val legalDests = engine.ruleSet.legalMoves(engine.context, clickedSquare)
val legalDests = engine.ruleSet.legalMoves(engine.context)(clickedSquare)
.collect { case move if move.from == clickedSquare => move.to }
legalDests.foreach { sq =>
highlightSquare(sq.rank.ordinal, sq.file.ordinal, PieceSprites.SquareColors.ValidMove)