Draft 2 new variants. Still 4 to add in this series
[vchess.git] / client / src / variants / Royalrace.js
index e3ed224..6f64d24 100644 (file)
@@ -178,7 +178,10 @@ export const VariantRules = class RoyalraceRules extends ChessRules {
     if (this.kingPos[color][0] == 0)
       // The opposing edge is reached!
       return color == "w" ? "1-0" : "0-1";
-    return "*";
+    if (this.atLeastOneMove())
+      return "*";
+    // Stalemate (will probably never happen)
+    return "1/2";
   }
 
   static get SEARCH_DEPTH() {