Revert "Revert "ignore #0 at ceval client level""

This reverts commit 603f5d9144.

https://lichess.org/forum/lichess-feedback/mate-in-zero
pull/4318/head
Thibault Duplessis 2018-04-29 03:55:59 +02:00
parent 64fb5fe4e3
commit 8d2a08637c
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ export default class Protocol {
elapsedMs: number = parseInt(matches[7]),
moves = matches[8].split(' ');
// Sometimes we get #0. Let's just skip it.
if (isMate && !ev) return;
// Track max pv index to determine when pv prints are done.
if (this.expectedPvs < multiPv) this.expectedPvs = multiPv;