projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check variants. All OK except Dark (bug), Checkered (missing internal moves stack...
[vchess.git]
/
client
/
src
/
variants
/
Crazyhouse.js
diff --git
a/client/src/variants/Crazyhouse.js
b/client/src/variants/Crazyhouse.js
index
179fffa
..
ec903c2
100644
(file)
--- a/
client/src/variants/Crazyhouse.js
+++ b/
client/src/variants/Crazyhouse.js
@@
-1,4
+1,7
@@
-class CrazyhouseRules extends ChessRules
+import { ChessRules, PiPo, Move } from "@/base_rules";
+import { ArrayFun} from "@/utils/array";
+
+export const VariantRules = class CrazyhouseRules extends ChessRules
{
static IsGoodFen(fen)
{
{
static IsGoodFen(fen)
{
@@
-98,7
+101,7
@@
class CrazyhouseRules extends ChessRules
[V.QUEEN]: parseInt(fenParsed.reserve[9]),
}
};
[V.QUEEN]: parseInt(fenParsed.reserve[9]),
}
};
- this.promoted =
doubleArray
(V.size.x, V.size.y, false);
+ this.promoted =
ArrayFun.init
(V.size.x, V.size.y, false);
if (fenParsed.promoted != "-")
{
for (let square of fenParsed.promoted.split(","))
if (fenParsed.promoted != "-")
{
for (let square of fenParsed.promoted.split(","))