feat : stockfish 16

This commit is contained in:
GuillaumeSD
2024-02-18 23:10:15 +01:00
parent 4df0778390
commit 70518a8bb8
6 changed files with 19 additions and 46 deletions

View File

@@ -36,7 +36,9 @@ export default function ReviewResult() {
{moveEval?.lines.map((line) => (
<div key={line.pv[0]} style={{ color: "white" }}>
<span style={{ marginRight: "2em" }}>
{line.cp ? line.cp / 100 : `Mate in ${Math.abs(line.mate ?? 0)}`}
{line.cp !== undefined
? line.cp / 100
: `Mate in ${Math.abs(line.mate ?? 0)}`}
</span>
<span>{line.pv.slice(0, 7).join(", ")}</span>
</div>