projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Pandemonium pawn moves
[vchess.git]
/
client
/
src
/
variants
/
Kinglet.js
diff --git
a/client/src/variants/Kinglet.js
b/client/src/variants/Kinglet.js
index
38ca649
..
81c8160
100644
(file)
--- a/
client/src/variants/Kinglet.js
+++ b/
client/src/variants/Kinglet.js
@@
-2,6
+2,7
@@
import { ChessRules } from "@/base_rules";
import { SuicideRules } from "@/variants/Suicide";
export class KingletRules extends ChessRules {
import { SuicideRules } from "@/variants/Suicide";
export class KingletRules extends ChessRules {
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
@@
-28,7
+29,7
@@
export class KingletRules extends ChessRules {
if (lowerRi == 'p') pawns[row[i] == lowerRi ? "b" : "w"]++;
sumElts++;
} else {
if (lowerRi == 'p') pawns[row[i] == lowerRi ? "b" : "w"]++;
sumElts++;
} else {
- const num = parseInt(row[i]);
+ const num = parseInt(row[i]
, 10
);
if (isNaN(num)) return false;
sumElts += num;
}
if (isNaN(num)) return false;
sumElts += num;
}
@@
-84,4
+85,5
@@
export class KingletRules extends ChessRules {
k: 4
};
}
k: 4
};
}
+
};
};