projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[xogo.git]
/
variants
/
Chaining
/
class.js
diff --git
a/variants/Chaining/class.js
b/variants/Chaining/class.js
index
5cd4c1d
..
9d771da
100644
(file)
--- a/
variants/Chaining/class.js
+++ b/
variants/Chaining/class.js
@@
-75,6
+75,7
@@
export default class ChainingRules extends ChessRules {
);
}
mv.chained = destPiece; //easier (no need to detect it)
);
}
mv.chained = destPiece; //easier (no need to detect it)
+// mv.drag = {c: this.turn, p: initPiece}; //TODO: doesn't work
return mv;
}
return mv;
}
@@
-103,7
+104,7
@@
export default class ChainingRules extends ChessRules {
postPlay(move) {
super.postPlay(move);
postPlay(move) {
super.postPlay(move);
- if (!!move.c
onvert
ed) {
+ if (!!move.c
hain
ed) {
this.lastMoveEnd.push({
x: move.end.x,
y: move.end.y,
this.lastMoveEnd.push({
x: move.end.x,
y: move.end.y,