projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some complete rules
[xogo.git]
/
variants
/
Berolina
/
class.js
diff --git
a/variants/Berolina/class.js
b/variants/Berolina/class.js
index
ef0ba89
..
18057f2
100644
(file)
--- a/
variants/Berolina/class.js
+++ b/
variants/Berolina/class.js
@@
-5,7
+5,8
@@
export default class BerolinaRules extends ChessRules {
pieces(color, x, y) {
let res = super.pieces(color, x, y);
- res['p'] = BerolinaPawnSpec(color);
+ const initRank = ((color == 'w' && x == 6) || (color == 'b' && x == 1));
+ res['p'] = BerolinaPawnSpec(color, initRank);
return res;
}