1 import ChessRules
from "/base_rules.js";
3 export default class BerolinaRules
extends ChessRules
{
6 const pawnShift
= (color
== "w" ? -1 : 1);
7 let res
= super.pieces(color
, x
, y
);
10 steps: [[pawnShift
, 1], [pawnShift
, -1]],
16 steps: [[pawnShift
, 0]],