Merge pull request #9264 from benediktwerner/show-ceval-arrow-instead-of-seveal

Prefer ceval arrow over server eval
pull/9277/head
Thibault Duplessis 2021-06-26 22:25:10 +02:00 committed by GitHub
commit 7fdafaa6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@ export function compute(ctrl: AnalyseCtrl): DrawShape[] {
if (ctrl.showAutoShapes() && ctrl.showComputer()) {
if (nEval.best) shapes = shapes.concat(makeShapesFromUci(rcolor, nEval.best, 'paleGreen'));
if (!hovering && parseInt(instance.multiPv())) {
let nextBest = ctrl.nextNodeBest();
if (!nextBest && instance.enabled() && nCeval) nextBest = nCeval.pvs[0].moves[0];
const nextBest = instance.enabled() && nCeval ? nCeval.pvs[0].moves[0] : ctrl.nextNodeBest();
if (nextBest) shapes = shapes.concat(makeShapesFromUci(color, nextBest, 'paleBlue'));
if (instance.enabled() && nCeval && nCeval.pvs[1] && !(ctrl.threatMode() && nThreat && nThreat.pvs.length > 2)) {
nCeval.pvs.forEach(function (pv) {