projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some other fixes
[vchess.git]
/
client
/
src
/
variants
/
Schess.js
diff --git
a/client/src/variants/Schess.js
b/client/src/variants/Schess.js
index
d2e3528
..
ba5730e
100644
(file)
--- a/
client/src/variants/Schess.js
+++ b/
client/src/variants/Schess.js
@@
-33,10
+33,6
@@
export class SchessRules extends ChessRules {
return b;
}
return b;
}
- // TODO: maybe changes could be done to this method to show "empty"
- // instead of a piece to not use a pocket piece...
-// getPPpath(b) { }
-
static IsGoodFen(fen) {
if (!ChessRules.IsGoodFen(fen)) return false;
const fenParsed = V.ParseFen(fen);
static IsGoodFen(fen) {
if (!ChessRules.IsGoodFen(fen)) return false;
const fenParsed = V.ParseFen(fen);
@@
-193,7
+189,7
@@
export class SchessRules extends ChessRules {
}
shift = (m.appear[0].p == V.NOTHING ? 1 : 0);
if (
}
shift = (m.appear[0].p == V.NOTHING ? 1 : 0);
if (
- m.appear.length >= 2 &&
+ m.appear.length >= 2
+ shift
&&
m.vanish.length == 2 &&
![m.appear[shift].y, m.appear[shift+1].y].includes(m.vanish[1].y)
) {
m.vanish.length == 2 &&
![m.appear[shift].y, m.appear[shift+1].y].includes(m.vanish[1].y)
) {