projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Checkered init FEN
[vchess.git]
/
client
/
src
/
variants
/
Synchrone2.js
diff --git
a/client/src/variants/Synchrone2.js
b/client/src/variants/Synchrone2.js
index
396a0c6
..
17b0be3
100644
(file)
--- a/
client/src/variants/Synchrone2.js
+++ b/
client/src/variants/Synchrone2.js
@@
-47,8
+47,8
@@
export class Synchrone2Rules extends Synchrone1Rules {
);
}
);
}
- static GenRandInitFen(
randomnes
s) {
- const res = ChessRules.GenRandInitFen(
randomnes
s);
+ static GenRandInitFen(
option
s) {
+ const res = ChessRules.GenRandInitFen(
option
s);
// Add initFen field:
return res.slice(0, -1) + res.split(' ')[0] + " -";
}
// Add initFen field:
return res.slice(0, -1) + res.split(' ')[0] + " -";
}
@@
-102,7
+102,7
@@
export class Synchrone2Rules extends Synchrone1Rules {
);
});
const passTarget =
);
});
const passTarget =
- (x != this.kingPos[c][0] || y != this.kingPos[c][
0
]) ? c : oppCol;
+ (x != this.kingPos[c][0] || y != this.kingPos[c][
1
]) ? c : oppCol;
movesNow.push(
new Move({
start: { x: x, y: y },
movesNow.push(
new Move({
start: { x: x, y: y },