send more tablebase requests

pull/4255/head
Niklas Fiekas 2018-04-15 00:56:01 +02:00
parent d9216cc84c
commit 7f478bae82
1 changed files with 2 additions and 3 deletions

View File

@ -10,9 +10,8 @@ function tablebaseRelevant(variant: string, fen: Fen) {
const parts = fen.split(/\s/);
const pieceCount = parts[0].split(/[nbrqkp]/i).length - 1;
if (variant === 'standard' || variant === 'chess960' || variant === 'atomic')
return pieceCount <= 7;
else if (variant === 'antichess') return pieceCount <= 6;
if (variant === 'standard' || variant === 'chess960') return pieceCount <= 8;
else if (variant === 'atomic' || variant === 'antichess') return pieceCount <= 7;
else return false;
}