From c55e7a704f3bea5c8a591c2a79d4cd58afdd19eb Mon Sep 17 00:00:00 2001 From: juliano Date: Sun, 4 Jun 2023 15:14:34 -0300 Subject: [PATCH] fix default strict FEN variable --- src/chess.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chess.ts b/src/chess.ts index 4643146c..15d3ecc6 100644 --- a/src/chess.ts +++ b/src/chess.ts @@ -52,7 +52,7 @@ export type Square = export const DEFAULT_POSITION = 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1' -export const DEFAULT_STRICT_SAN = false +export const DEFAULT_STRICT_FEN = true export type Piece = { color: Color @@ -594,7 +594,7 @@ export class Chess { private _castling: Record = { w: 0, b: 0 } private _strict: boolean - constructor(fen = DEFAULT_POSITION, strict = DEFAULT_STRICT_SAN) { + constructor(fen = DEFAULT_POSITION, strict = DEFAULT_STRICT_FEN) { this._strict = strict this.load(fen, false, strict) }