1 import { ChessRules
} from "@/base_rules";
3 export class CastleRules
extends ChessRules
{
6 const baseScore
= super.getCurrentScore();
7 if (baseScore
!= '*') return baseScore
;
8 if (this.castleFlags
['b'][0] >= 8) {
9 if (this.getPiece(0,2) == V
.KING
&& this.getPiece(0,3) == V
.ROOK
)