Untested draft refactor both/moves/attack for pieces specs
[xogo.git] / variants / _Berolina / pawnSpec.js
... / ...
CommitLineData
1export default BerolinaPawnSpec = (color) => {
2
3 const pawnShift = (color == "w" ? -1 : 1);
4 return {
5 moves: [
6 {
7 steps: [[pawnShift, 1], [pawnShift, -1]],
8 range: 1
9 }
10 ],
11 attack: [
12 {
13 steps: [[pawnShift, 0]],
14 range: 1
15 }
16 ]
17 };
18
19};