projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix path to Alice pieces
[vchess.git]
/
client
/
src
/
variants
/
Alice.js
diff --git
a/client/src/variants/Alice.js
b/client/src/variants/Alice.js
index
e7daf7f
..
a92338f
100644
(file)
--- a/
client/src/variants/Alice.js
+++ b/
client/src/variants/Alice.js
@@
-25,14
+25,14
@@
export const VariantRules = class AliceRules extends ChessRules {
};
}
};
}
- static getPpath(b) {
- return (Object.keys(this.ALICE_PIECES).includes(b[1]) ? "Alice/" : "") + b;
- }
-
static get PIECES() {
return ChessRules.PIECES.concat(Object.keys(V.ALICE_PIECES));
}
static get PIECES() {
return ChessRules.PIECES.concat(Object.keys(V.ALICE_PIECES));
}
+ getPpath(b) {
+ return (Object.keys(V.ALICE_PIECES).includes(b[1]) ? "Alice/" : "") + b;
+ }
+
setOtherVariables(fen) {
super.setOtherVariables(fen);
const rows = V.ParseFen(fen).position.split("/");
setOtherVariables(fen) {
super.setOtherVariables(fen);
const rows = V.ParseFen(fen).position.split("/");