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 Convert variant
[vchess.git]
/
client
/
src
/
variants
/
Progressive2.js
diff --git
a/client/src/variants/Progressive2.js
b/client/src/variants/Progressive2.js
index
ffc22bc
..
8df8eea
100644
(file)
--- a/
client/src/variants/Progressive2.js
+++ b/
client/src/variants/Progressive2.js
@@
-4,6
+4,7
@@
import { ChessRules } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class Progressive2Rules extends Progressive1Rules {
import { randInt } from "@/utils/alea";
export class Progressive2Rules extends Progressive1Rules {
+
static get PawnSpecs() {
return Object.assign(
{},
static get PawnSpecs() {
return Object.assign(
{},
@@
-16,6
+17,10
@@
export class Progressive2Rules extends Progressive1Rules {
return false;
}
return false;
}
+ static get HasEnpassant() {
+ return false;
+ }
+
postPlay(move) {
const c = move.turn[0];
const piece = move.vanish[0].p;
postPlay(move) {
const c = move.turn[0];
const piece = move.vanish[0].p;
@@
-26,7
+31,6
@@
export class Progressive2Rules extends Progressive1Rules {
}
undo(move) {
}
undo(move) {
- this.disaggregateFlags(JSON.parse(move.flags));
V.UndoOnBoard(this.board, move);
if (this.turn != move.turn[0]) this.movesCount--;
this.turn = move.turn[0];
V.UndoOnBoard(this.board, move);
if (this.turn != move.turn[0]) this.movesCount--;
this.turn = move.turn[0];
@@
-48,4
+52,5
@@
export class Progressive2Rules extends Progressive1Rules {
k: 1000
};
}
k: 1000
};
}
+
};
};