return { x: 7, y: 7};
}
- getPotentialMovesFrom(sq) {
- switch (this.getPiece(sq[0], sq[1])) {
- case V.PAWN: return this.getPotentialPawnMoves(sq);
- case V.ROOK: return super.getPotentialRookMoves(sq);
- case V.KNIGHT: return super.getPotentialKnightMoves(sq);
- case V.KING: return super.getPotentialKingMoves(sq);
- case V.CANNON: return super.getPotentialCannonMoves(sq);
- }
- return []; //never reached
- }
-
getPotentialPawnMoves([x, y]) {
const c = this.getColor(x, y);
const shiftX = (c == 'w' ? -1 : 1);
return evaluation;
}
+ static get SEARCH_DEPTH() {
+ return 3;
+ }
+
// Also no randomization here
static GenRandInitFen() {
return "rcnkncr/p1ppp1p/7/7/7/P1PPP1P/RCNKNCR w 0";