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

Fix eval cache move number calc
This commit is contained in:
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

View file

@ -95,5 +95,5 @@ final class EvalCacheApi(
} }
private def destSize(fen: FEN): Int = 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
} }