projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft rematch (not working yet) + fix Crazyhouse getPromotedFen()
[vchess.git]
/
client
/
src
/
variants
/
Recycle.js
diff --git
a/client/src/variants/Recycle.js
b/client/src/variants/Recycle.js
index
50ccd74
..
9f43ad8
100644
(file)
--- a/
client/src/variants/Recycle.js
+++ b/
client/src/variants/Recycle.js
@@
-18,8
+18,8
@@
export const VariantRules = class RecycleRules extends ChessRules {
});
}
});
}
- static GenRandInitFen() {
- return ChessRules.GenRandInitFen() + " 0000000000";
+ static GenRandInitFen(
randomness
) {
+ return ChessRules.GenRandInitFen(
randomness
) + " 0000000000";
}
getFen() {
}
getFen() {
@@
-28,6
+28,16
@@
export const VariantRules = class RecycleRules extends ChessRules {
);
}
);
}
+ getFenForRepeat() {
+ return (
+ this.getBaseFen() + "_" +
+ this.getTurnFen() + "_" +
+ this.getFlagsFen() + "_" +
+ this.getEnpassantFen() + "_" +
+ this.getReserveFen()
+ );
+ }
+
getReserveFen() {
let counts = new Array(10);
for (
getReserveFen() {
let counts = new Array(10);
for (