projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Almost finished Clorange draft
[xogo.git]
/
variants
/
_Berolina
/
pawnSpec.js
diff --git
a/variants/_Berolina/pawnSpec.js
b/variants/_Berolina/pawnSpec.js
index
7cfc7be
..
e3d0330
100644
(file)
--- a/
variants/_Berolina/pawnSpec.js
+++ b/
variants/_Berolina/pawnSpec.js
@@
-1,4
+1,4
@@
-export default function (color) {
+export default function (color
, initRank
) {
const pawnShift = (color == "w" ? -1 : 1);
return {
@@
-6,7
+6,7
@@
export default function (color) {
moves: [
{
steps: [[pawnShift, 1], [pawnShift, -1]],
- range:
1
+ range:
(initRank ? 2 : 1)
}
],
attack: [