18057f2ca3b4068645a328ffc35b9754a043a9da
[xogo.git] / variants / Berolina / class.js
1 import ChessRules from "/base_rules.js";
2 import BerolinaPawnSpec from "/variants/_Berolina/pawnSpec.js";
3
4 export default class BerolinaRules extends ChessRules {
5
6 pieces(color, x, y) {
7 let res = super.pieces(color, x, y);
8 const initRank = ((color == 'w' && x == 6) || (color == 'b' && x == 1));
9 res['p'] = BerolinaPawnSpec(color, initRank);
10 return res;
11 }
12
13 };