projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Stealthbomb
[vchess.git]
/
client
/
src
/
variants
/
Clorange.js
diff --git
a/client/src/variants/Clorange.js
b/client/src/variants/Clorange.js
index
e96d851
..
d4ec1ef
100644
(file)
--- a/
client/src/variants/Clorange.js
+++ b/
client/src/variants/Clorange.js
@@
-2,6
+2,7
@@
import { ChessRules, PiPo, Move } from "@/base_rules";
import { ArrayFun } from "@/utils/array";
export class ClorangeRules extends ChessRules {
import { ArrayFun } from "@/utils/array";
export class ClorangeRules extends ChessRules {
+
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);
@@
-314,4
+315,5
@@
export class ClorangeRules extends ChessRules {
move.appear[0].p != V.PAWN ? move.appear[0].p.toUpperCase() : "";
return piece + "@" + V.CoordsToSquare(move.end);
}
move.appear[0].p != V.PAWN ? move.appear[0].p.toUpperCase() : "";
return piece + "@" + V.CoordsToSquare(move.end);
}
+
};
};