projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Alice Chess, fix a few things in base_rules.js
[xogo.git]
/
variants
/
Ambiguous
/
class.js
diff --git
a/variants/Ambiguous/class.js
b/variants/Ambiguous/class.js
index
6a001a6
..
58458b6
100644
(file)
--- a/
variants/Ambiguous/class.js
+++ b/
variants/Ambiguous/class.js
@@
-55,14
+55,10
@@
export default class AmbiguousRules extends ChessRules {
return true;
})
.map(m => {
return true;
})
.map(m => {
- if (m.vanish.length == 1) {
- m.appear[0].c = 'a'; //a-color
+ if (m.vanish.length == 1)
m.appear[0].p = V.GOAL;
m.appear[0].p = V.GOAL;
- }
- else {
+ else
m.appear[0].p = V.TARGET_CODE[m.vanish[1].p];
m.appear[0].p = V.TARGET_CODE[m.vanish[1].p];
- m.appear[0].c = oppCol;
- }
m.vanish.shift();
return m;
})
m.vanish.shift();
return m;
})
@@
-133,8
+129,8
@@
export default class AmbiguousRules extends ChessRules {
't': {"class": "target-queen", moves: []},
'l': {"class": "target-king", moves: []}
};
't': {"class": "target-queen", moves: []},
'l': {"class": "target-king", moves: []}
};
- return Object.assign(
-
{ 'g': {"class": "target"} },
targets, super.pieces(color, x, y));
+ return Object.assign(
{ 'g': {"class": "target", moves: []} },
+ targets, super.pieces(color, x, y));
}
atLeastOneMove() {
}
atLeastOneMove() {