cf44ba562cce42689f97801973cf87314d9a244e
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
)