X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fvariants%2FSwitching.js;fp=public%2Fjavascripts%2Fvariants%2FSwitching.js;h=a7d678791e801f788d846ca77b19ccdf8d27f50c;hb=a6abf094c35a26019e47fea21302c4be32ff030b;hp=0000000000000000000000000000000000000000;hpb=cf1303697774a12ef9bb154014a38797716944cf;p=vchess.git diff --git a/public/javascripts/variants/Switching.js b/public/javascripts/variants/Switching.js new file mode 100644 index 00000000..a7d67879 --- /dev/null +++ b/public/javascripts/variants/Switching.js @@ -0,0 +1,10 @@ +//https://www.chessvariants.com/diffmove.dir/switching.html +class SwitchingRules extends ChessRules +{ + //TODO: + // Move completion: promote switched pawns (as in Magnetic) + + // To every piece potential moves: add switchings + + // Prevent king switching if under check +}