loseOnRepetition: getter seems enough
[vchess.git] / client / src / variants / Pandemonium2.js
index 4a98083..2af56ea 100644 (file)
@@ -12,7 +12,7 @@ export class Pandemonium2Rules extends ChessRules {
     );
   }
 
     );
   }
 
-  loseOnRepetition() {
+  get loseOnRepetition() {
     // If current side is under check: lost
     return this.underCheck(this.turn);
   }
     // If current side is under check: lost
     return this.underCheck(this.turn);
   }