-export default BerolinaPawnSpec = (color) => {
+export default function (color, initRank) {
const pawnShift = (color == "w" ? -1 : 1);
return {
+ "class": "pawn",
moves: [
{
steps: [[pawnShift, 1], [pawnShift, -1]],
- range: 1
+ range: (initRank ? 2 : 1)
}
],
attack: [
]
};
-};
+}