projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes. Screen variant computer play is still broken, seemingly
[vchess.git]
/
client
/
src
/
variants
/
Crazyhouse.js
diff --git
a/client/src/variants/Crazyhouse.js
b/client/src/variants/Crazyhouse.js
index
7fa47b7
..
2a95dc8
100644
(file)
--- a/
client/src/variants/Crazyhouse.js
+++ b/
client/src/variants/Crazyhouse.js
@@
-80,9
+80,9
@@
export class CrazyhouseRules extends ChessRules {
setOtherVariables(fen) {
super.setOtherVariables(fen);
setOtherVariables(fen) {
super.setOtherVariables(fen);
+ const fenParsed = V.ParseFen(fen);
// Also init reserves (used by the interface to show landable pieces)
// Also init reserves (used by the interface to show landable pieces)
- const reserve =
- V.ParseFen(fen).reserve.split("").map(x => parseInt(x, 10));
+ const reserve = fenParsed.reserve.split("").map(x => parseInt(x, 10));
this.reserve = {
w: {
[V.PAWN]: reserve[0],
this.reserve = {
w: {
[V.PAWN]: reserve[0],