X-Git-Url: https://git.auder.net/variants/Checkered/complete_rules.html?a=blobdiff_plain;f=variants%2FAllmate%2Fclass.js;h=e491e6d4438138f5b2b42190ba749e0ce526d1d8;hb=bc97fdd1302473b774cfb19e65dc3ed3ed388901;hp=8d3164952aa4f1ae44ededb2d74d7f9e72a0ae6a;hpb=af9c9be34f416500f9e025e28f39fe89a8c7c345;p=xogo.git diff --git a/variants/Allmate/class.js b/variants/Allmate/class.js index 8d31649..e491e6d 100644 --- a/variants/Allmate/class.js +++ b/variants/Allmate/class.js @@ -35,7 +35,7 @@ export default class AllmateRules extends ChessRules { if (move.appear.length > 0) this.curMove = move; const color = this.turn; - const oppCol = C.GetOppCol(this.turn); + const oppCol = C.GetOppTurn(this.turn); let mv = new Move({ start: this.curMove.end, end: this.curMove.end, @@ -58,7 +58,7 @@ export default class AllmateRules extends ChessRules { // is piece on square x,y mated by color? isMated(x, y, color) { - const myColor = C.GetOppCol(color); + const myColor = C.GetOppTurn(color); if (!super.underAttack([x, y], color)) return false; for (let i=0; i