projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unambiguous section in the PGN + some fixes + code formatting and fix typos
[vchess.git]
/
client
/
src
/
variants
/
Berolina.js
diff --git
a/client/src/variants/Berolina.js
b/client/src/variants/Berolina.js
index
b14b19e
..
e5a222b
100644
(file)
--- a/
client/src/variants/Berolina.js
+++ b/
client/src/variants/Berolina.js
@@
-62,7
+62,9
@@
export class BerolinaRules extends ChessRules {
const startRank = color == "w" ? sizeX - 2 : 1;
const lastRank = color == "w" ? 0 : sizeX - 1;
const finalPieces =
const startRank = color == "w" ? sizeX - 2 : 1;
const lastRank = color == "w" ? 0 : sizeX - 1;
const finalPieces =
- x + shiftX == lastRank ? [V.ROOK, V.KNIGHT, V.BISHOP, V.QUEEN] : [V.PAWN];
+ x + shiftX == lastRank
+ ? [V.ROOK, V.KNIGHT, V.BISHOP, V.QUEEN]
+ : [V.PAWN];
// One square diagonally
for (let shiftY of [-1, 1]) {
// One square diagonally
for (let shiftY of [-1, 1]) {