Re-enable analysability detection - closes #9688

pull/9717/head
Benedikt Werner 2021-09-03 22:07:35 +02:00
parent 5f13f7bcc9
commit 3bd3511d0d
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export default function (opts: CevalOpts): CevalCtrl {
// check root position
const setup = opts.initialFen ? parseFen(opts.initialFen).unwrap() : undefined;
const rules = lichessRules(opts.variant.key);
const analysable = setup ? setupPosition(rules, setup).isOk || true : true;
const analysable = setup ? setupPosition(rules, setup).isOk : true;
const standardMaterial = setup
? COLORS.every(color => {
const board = setup.board;