projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Discoduel, draft Dobutsu, some code cleaning
[xogo.git]
/
variants
/
Clorange
/
class.js
diff --git
a/variants/Clorange/class.js
b/variants/Clorange/class.js
index
485bbd6
..
e8506db
100644
(file)
--- a/
variants/Clorange/class.js
+++ b/
variants/Clorange/class.js
@@
-14,14
+14,6
@@
export default class ClorangeRules extends ChessRules {
return true;
}
return true;
}
- getReserveFen(o) {
- if (o.init)
- return "00000000000000000000";
- return (
- ["w","b"].map(c => Object.values(this.reserve[c]).join("")).join("")
- );
- }
-
pieces(color, x, y) {
let res = super.pieces(color, x, y);
res['s'] = {"class": "nv-pawn", moveas: "p"};
pieces(color, x, y) {
let res = super.pieces(color, x, y);
res['s'] = {"class": "nv-pawn", moveas: "p"};
@@
-38,9
+30,8
@@
export default class ClorangeRules extends ChessRules {
static get NV_PIECES() {
return ['s', 'u', 'o', 'c', 't'];
}
static get NV_PIECES() {
return ['s', 'u', 'o', 'c', 't'];
}
-
- setOtherVariables(fen) {
- super.setOtherVariables(fen, V.V_PIECES.concat(V.NV_PIECES));
+ static get ReserveArray() {
+ return V.V_PIECES.concat(V.NV_PIECES);
}
// Forbid non-violent pieces to capture
}
// Forbid non-violent pieces to capture