Some fixes. Loser implemented. Draft Extinction,Crazyhouse,Switching
[vchess.git] / public / javascripts / variants / Switching.js
diff --git a/public/javascripts/variants/Switching.js b/public/javascripts/variants/Switching.js
new file mode 100644 (file)
index 0000000..a7d6787
--- /dev/null
@@ -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
+}