18057f2ca3b4068645a328ffc35b9754a043a9da
1 import ChessRules
from "/base_rules.js";
2 import BerolinaPawnSpec
from "/variants/_Berolina/pawnSpec.js";
4 export default class BerolinaRules
extends ChessRules
{
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
);