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

Prefer ceval arrow over server eval
This commit is contained in:
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

View file

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