Small fixes
[vchess.git] / client / src / variants / Karouk.js
1 import { MakrukRules } from "@/variants/Makruk";
2
3 export class KaroukRules extends MakrukRules {
4
5 getCurrentScore() {
6 const color = this.turn;
7 if (this.underCheck(color)) return (color == 'w' ? "0-1" : "1-0");
8 return super.getCurrentScore();
9 }
10
11 };