Merge pull request #9284 from benediktwerner/fix-eval-cache-moves-num

Fix eval cache move number calc
pull/9218/head^2
Niklas Fiekas 2021-06-28 15:46:26 +02:00 committed by GitHub
commit 5b133a4a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -95,5 +95,5 @@ final class EvalCacheApi(
}
private def destSize(fen: FEN): Int =
chess.Game(chess.variant.Standard.some, fen.some).situation.destinations.size
chess.Game(chess.variant.Standard.some, fen.some).situation.moves.view.map(_._2.size).sum
}