projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Paco-Sako: allow castling with a rook in union + fix a bug in isAttacked()
[vchess.git]
/
client
/
src
/
variants
/
Freecapture.js
diff --git
a/client/src/variants/Freecapture.js
b/client/src/variants/Freecapture.js
index
19098b6
..
5fe93ea
100644
(file)
--- a/
client/src/variants/Freecapture.js
+++ b/
client/src/variants/Freecapture.js
@@
-1,6
+1,7
@@
import { ChessRules } from "@/base_rules";
export class FreecaptureRules extends ChessRules {
+
canTake() {
// Can capture both colors:
return true;
@@
-9,4
+10,5
@@
export class FreecaptureRules extends ChessRules {
static get SEARCH_DEPTH() {
return 2;
}
+
};