Add temporary patch for preset challenges
[vchess.git] / client / src / variants / Karouk.js
CommitLineData
1a8e3d26
BA
1import { MakrukRules } from "@/variants/Makruk";
2
3export 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};