Almost finished problems logic. TODO: showProblem() part
[vchess.git] / public / javascripts / variants / Ultima.js
index 04ef29b..d6fecb7 100644 (file)
@@ -7,6 +7,15 @@ class UltimaRules extends ChessRules
                return b; //usual piece
        }
 
+       static get PIECES() {
+               return ChessRules.PIECES.concat([V.IMMOBILIZER]);
+       }
+
+       static IsGoodFlags(flags)
+       {
+               return true; //anything is good: no flags
+       }
+
        initVariables(fen)
        {
                this.kingPos = {'w':[-1,-1], 'b':[-1,-1]};