projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Fullcavalry: lancers' initial orientation
[vchess.git]
/
client
/
src
/
variants
/
Schess.js
diff --git
a/client/src/variants/Schess.js
b/client/src/variants/Schess.js
index
06644c7
..
bdc9327
100644
(file)
--- a/
client/src/variants/Schess.js
+++ b/
client/src/variants/Schess.js
@@
-1,6
+1,7
@@
import { ChessRules, PiPo } from "@/base_rules";
export class SchessRules extends ChessRules {
import { ChessRules, PiPo } from "@/base_rules";
export class SchessRules extends ChessRules {
+
static get PawnSpecs() {
return Object.assign(
{},
static get PawnSpecs() {
return Object.assign(
{},
@@
-119,12
+120,12
@@
export class SchessRules extends ChessRules {
const fenParsed = V.ParseFen(fen);
this.pocket = {
"w": {
const fenParsed = V.ParseFen(fen);
this.pocket = {
"w": {
- h: parseInt(fenParsed.pocket[0]),
- e: parseInt(fenParsed.pocket[1])
+ h: parseInt(fenParsed.pocket[0]
, 10
),
+ e: parseInt(fenParsed.pocket[1]
, 10
)
},
"b": {
},
"b": {
- h: parseInt(fenParsed.pocket[2]),
- e: parseInt(fenParsed.pocket[3])
+ h: parseInt(fenParsed.pocket[2]
, 10
),
+ e: parseInt(fenParsed.pocket[3]
, 10
)
}
};
}
}
};
}
@@
-349,4
+350,5
@@
export class SchessRules extends ChessRules {
}
return super.getNotation(move);
}
}
return super.getNotation(move);
}
+
};
};