Fix Bario, write rules
[vchess.git] / client / src / variants / Pacosako.js
index cde5039..8fc5a86 100644 (file)
@@ -833,6 +833,7 @@ export class PacosakoRules extends ChessRules {
       for (let i = mvArray.length - 1; i >= 0; i--) this.undo(mvArray[i]);
       if (!mv.end.released) return (mvArray.length > 1 ? mvArray : mvArray[0]);
     }
+    return null; //never reached
   }
 
   // NOTE: evalPosition() is wrong, but unused since bot plays at random