import ChessRules from "/base_rules.js";
-import {Random} from "/utils/alea.js";
import PiPo from "/utils/PiPo.js";
import Move from "/utils/Move.js";
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) &&