projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new variant in TODO
[vchess.git]
/
client
/
src
/
variants
/
Antiking.js
diff --git
a/client/src/variants/Antiking.js
b/client/src/variants/Antiking.js
index
3b1b36e
..
21e37f4
100644
(file)
--- a/
client/src/variants/Antiking.js
+++ b/
client/src/variants/Antiking.js
@@
-3,10
+3,6
@@
import { ArrayFun } from "@/utils/array";
import { randInt } from "@/utils/alea";
export const VariantRules = class AntikingRules extends ChessRules {
import { randInt } from "@/utils/alea";
export const VariantRules = class AntikingRules extends ChessRules {
- static getPpath(b) {
- return b[1] == "a" ? "Antiking/" + b : b;
- }
-
static get ANTIKING() {
return "a";
}
static get ANTIKING() {
return "a";
}
@@
-15,6
+11,10
@@
export const VariantRules = class AntikingRules extends ChessRules {
return ChessRules.PIECES.concat([V.ANTIKING]);
}
return ChessRules.PIECES.concat([V.ANTIKING]);
}
+ getPpath(b) {
+ return b[1] == "a" ? "Antiking/" + b : b;
+ }
+
setOtherVariables(fen) {
super.setOtherVariables(fen);
this.antikingPos = { w: [-1, -1], b: [-1, -1] };
setOtherVariables(fen) {
super.setOtherVariables(fen);
this.antikingPos = { w: [-1, -1], b: [-1, -1] };
@@
-145,7
+145,10
@@
export const VariantRules = class AntikingRules extends ChessRules {
}
static get VALUES() {
}
static get VALUES() {
- return Object.assign(ChessRules.VALUES, { a: 1000 });
+ return Object.assign(
+ { a: 1000 },
+ ChessRules.VALUES
+ );
}
static GenRandInitFen() {
}
static GenRandInitFen() {