projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to fix Eightpieces
[vchess.git]
/
client
/
src
/
variants
/
Pawns.js
diff --git
a/client/src/variants/Pawns.js
b/client/src/variants/Pawns.js
index
83ccca7
..
fdecf0a
100644
(file)
--- a/
client/src/variants/Pawns.js
+++ b/
client/src/variants/Pawns.js
@@
-1,6
+1,11
@@
import { ChessRules } from "@/base_rules";
export class PawnsRules extends ChessRules {
import { ChessRules } from "@/base_rules";
export class PawnsRules extends ChessRules {
+
+ static get Options() {
+ return null;
+ }
+
static get PawnSpecs() {
return Object.assign(
{},
static get PawnSpecs() {
return Object.assign(
{},
@@
-14,6
+19,8
@@
export class PawnsRules extends ChessRules {
return false;
}
return false;
}
+ scanKings() {}
+
static GenRandInitFen() {
return "8/pppppppp/8/8/8/8/PPPPPPPP/8 w 0 -";
}
static GenRandInitFen() {
return "8/pppppppp/8/8/8/8/PPPPPPPP/8 w 0 -";
}
@@
-36,4
+43,12
@@
export class PawnsRules extends ChessRules {
if (!this.atLeastOneMove()) return "1/2";
return "*";
}
if (!this.atLeastOneMove()) return "1/2";
return "*";
}
+
+ postPlay() {}
+ postUndo() {}
+
+ static get SEARCH_DEPTH() {
+ return 4;
+ }
+
};
};