[V.GOLD_G]: parseInt(fenParsed.reserve[3]),
[V.SILVER_G]: parseInt(fenParsed.reserve[4]),
[V.KNIGHT]: parseInt(fenParsed.reserve[5]),
[V.GOLD_G]: parseInt(fenParsed.reserve[3]),
[V.SILVER_G]: parseInt(fenParsed.reserve[4]),
[V.KNIGHT]: parseInt(fenParsed.reserve[5]),
[V.GOLD_G]: parseInt(fenParsed.reserve[10]),
[V.SILVER_G]: parseInt(fenParsed.reserve[11]),
[V.KNIGHT]: parseInt(fenParsed.reserve[12]),
[V.GOLD_G]: parseInt(fenParsed.reserve[10]),
[V.SILVER_G]: parseInt(fenParsed.reserve[11]),
[V.KNIGHT]: parseInt(fenParsed.reserve[12]),
- [V.PAWN, V.ROOK, V.BISHOP, V.GOLD_G, V.SILVER_G, V.KNIGHT, V.LANCER]
+ [V.PAWN, V.ROOK, V.BISHOP, V.GOLD_G, V.SILVER_G, V.KNIGHT, V.LANCE]
const lastRanks = color == 'w' ? [0, 1] : [8, 7];
for (let i = 0; i < V.size.x; i++) {
if (
const lastRanks = color == 'w' ? [0, 1] : [8, 7];
for (let i = 0; i < V.size.x; i++) {
if (
return this.getPotentialBishopMoves([x, y]);
case V.SILVER_G:
return this.getPotentialSilverMoves([x, y]);
return this.getPotentialBishopMoves([x, y]);
case V.SILVER_G:
return this.getPotentialSilverMoves([x, y]);
return this.getPotentialGoldMoves([x, y]);
}
return []; //never reached
return this.getPotentialGoldMoves([x, y]);
}
return []; //never reached
- sq, [[forward, 0]], { promote: V.P_LANCER });
+ sq, [[forward, 0]], { promote: V.P_LANCE });
this.isAttackedByKnight(sq, color) ||
this.isAttackedByBishop(sq, color) ||
this.isAttackedByHorse(sq, color) ||
this.isAttackedByKnight(sq, color) ||
this.isAttackedByBishop(sq, color) ||
this.isAttackedByHorse(sq, color) ||
this.isAttackedBySilver(sq, color) ||
this.isAttackedByGold(sq, color) ||
this.isAttackedByKing(sq, color)
this.isAttackedBySilver(sq, color) ||
this.isAttackedByGold(sq, color) ||
this.isAttackedByKing(sq, color)
V.OnBoard(i, j) &&
this.board[i][j] != V.EMPTY &&
this.getColor(i, j) == color &&
V.OnBoard(i, j) &&
this.board[i][j] != V.EMPTY &&
this.getColor(i, j) == color &&
- [V.GOLD_G, V.P_PAWN, V.P_SILVER, V.P_KNIGHT, V.P_LANCER]
+ [V.GOLD_G, V.P_PAWN, V.P_SILVER, V.P_KNIGHT, V.P_LANCE]
sq, color, V.KNIGHT, [[forward, 1], [forward, -1]], "oneStep");
}
sq, color, V.KNIGHT, [[forward, 1], [forward, -1]], "oneStep");
}
- return this.isAttackedBySlideNJump(sq, color, V.LANCER, [[forward, 0]]);
+ return this.isAttackedBySlideNJump(sq, color, V.LANCE, [[forward, 0]]);