projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes + draft Avalanche
[vchess.git]
/
client
/
src
/
variants
/
Antiking1.js
diff --git
a/client/src/variants/Antiking1.js
b/client/src/variants/Antiking1.js
index
ab86f69
..
92034a3
100644
(file)
--- a/
client/src/variants/Antiking1.js
+++ b/
client/src/variants/Antiking1.js
@@
-4,6
+4,7
@@
import { ArrayFun } from "@/utils/array";
import { randInt } from "@/utils/alea";
export class Antiking1Rules extends BerolinaRules {
import { randInt } from "@/utils/alea";
export class Antiking1Rules extends BerolinaRules {
+
static get PawnSpecs() {
return Object.assign(
{},
static get PawnSpecs() {
return Object.assign(
{},
@@
-56,7
+57,7
@@
export class Antiking1Rules extends BerolinaRules {
this.antikingPos["w"] = [i, k];
break;
default: {
this.antikingPos["w"] = [i, k];
break;
default: {
- const num = parseInt(rows[i].charAt(j));
+ const num = parseInt(rows[i].charAt(j)
, 10
);
if (!isNaN(num)) k += num - 1;
}
}
if (!isNaN(num)) k += num - 1;
}
}
@@
-221,4
+222,5
@@
export class Antiking1Rules extends BerolinaRules {
static get SEARCH_DEPTH() {
return 2;
}
static get SEARCH_DEPTH() {
return 2;
}
+
};
};