projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Almost added TitanChess + EvolutionChess
[vchess.git]
/
client
/
src
/
variants
/
Swap.js
diff --git
a/client/src/variants/Swap.js
b/client/src/variants/Swap.js
index
4d97ae9
..
9c3407b
100644
(file)
--- a/
client/src/variants/Swap.js
+++ b/
client/src/variants/Swap.js
@@
-2,6
+2,7
@@
import { ChessRules, PiPo } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class SwapRules extends ChessRules {
import { randInt } from "@/utils/alea";
export class SwapRules extends ChessRules {
+
setOtherVariables(fen) {
super.setOtherVariables(fen);
// Local stack of swaps
setOtherVariables(fen) {
super.setOtherVariables(fen);
// Local stack of swaps
@@
-341,4
+342,5
@@
export class SwapRules extends ChessRules {
// Swap
return "S" + V.CoordsToSquare(move.start) + V.CoordsToSquare(move.end);
}
// Swap
return "S" + V.CoordsToSquare(move.start) + V.CoordsToSquare(move.end);
}
+
};
};