// NOTE: size.x == size.y (square boards)
const emptyCount = C.FenEmptySquares(this.size.x);
return {
- fen: (emptyCount + "/").repeat(this.size.x).slice(0, -1) + " w 0",
+ fen: (emptyCount + "/").repeat(this.size.x - 1) + emptyCount,
o: {}
};
}
this.turn = C.GetOppCol(this.turn);
}
- getCurrentScore(move) {
+ getCurrentScore() {
const oppCol = C.GetOppCol(this.turn);
// Search for connecting path of opp color:
let explored = {}, component;