X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FAvalanche%2Fclass.js;h=dbbe9d55d4eb9666fb921a5f5d592480ef930564;hb=b57b726c569a1a0f21b7f3ca00956bc2f26a6f3e;hp=ea2b9dd6a9f1b5e53f25b42ef0a58c5d62589013;hpb=d6d0a46e5c8c1d9176f4a9e9c44a4b5f2ed791e7;p=xogo.git diff --git a/variants/Avalanche/class.js b/variants/Avalanche/class.js index ea2b9dd..dbbe9d5 100644 --- a/variants/Avalanche/class.js +++ b/variants/Avalanche/class.js @@ -1,5 +1,4 @@ import ChessRules from "/base_rules.js"; -import {Random} from "/utils/alea.js"; import PiPo from "/utils/PiPo.js"; import Move from "/utils/Move.js"; @@ -119,7 +118,7 @@ export default class AvalancheRules extends ChessRules { postPlay(move) { const color = this.turn; - const oppCol = C.GetOppCol(color); + const oppCol = C.GetOppTurn(color); this.promotion = ( this.subTurn == 2 && move.end.x == (oppCol == 'w' ? 0 : this.size.x - 1) &&