1 import { MakrukRules
} from "@/variants/Makruk";
3 export class MakpongRules
extends MakrukRules
{
6 const color
= this.turn
;
7 if (this.underCheck(color
)) {
8 // Filter out all moves involving king
9 return super.filterValid(moves
.filter(m
=> m
.vanish
[0].p
!= V
.KING
));
11 return super.filterValid(moves
);