projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Experimental support for challenges from URL + ask specific color
[vchess.git]
/
client
/
src
/
variants
/
Capture.js
diff --git
a/client/src/variants/Capture.js
b/client/src/variants/Capture.js
index
d7cc57e
..
19ce734
100644
(file)
--- a/
client/src/variants/Capture.js
+++ b/
client/src/variants/Capture.js
@@
-6,7
+6,7
@@
export class CaptureRules extends ChessRules {
return moves.filter(m => m.vanish.length == 2 && m.appear.length == 1);
}
return moves.filter(m => m.vanish.length == 2 && m.appear.length == 1);
}
-
// Stop at the first capture found (if any)
+ // Stop at the first capture found (if any)
atLeastOneCapture() {
const color = this.turn;
const oppCol = V.GetOppCol(color);
atLeastOneCapture() {
const color = this.turn;
const oppCol = V.GetOppCol(color);
@@
-40,8
+40,4
@@
export class CaptureRules extends ChessRules {
return V.KeepCaptures(moves);
return moves;
}
return V.KeepCaptures(moves);
return moves;
}
-
- static get SEARCH_DEPTH() {
- return 4;
- }
};
};