projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Early draft of TitanChess
[vchess.git]
/
client
/
src
/
variants
/
Madrasi.js
diff --git
a/client/src/variants/Madrasi.js
b/client/src/variants/Madrasi.js
index
54c1862
..
ed2a879
100644
(file)
--- a/
client/src/variants/Madrasi.js
+++ b/
client/src/variants/Madrasi.js
@@
-2,7
+2,7
@@
import { ChessRules } from "@/base_rules";
export class MadrasiRules extends ChessRules {
isImmobilized(sq) {
- const oppCol = V.GetOppCol(this.
turn
);
+ const oppCol = V.GetOppCol(this.
getColor(sq[0], sq[1])
);
const piece = this.getPiece(sq[0], sq[1]);
let steps = [];
switch (piece) {