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