loseOnRepetition: getter seems enough
[vchess.git] / client / src / variants / Shogi.js
index 9806351..95be2d1 100644 (file)
@@ -24,7 +24,7 @@ export class ShogiRules extends ChessRules {
     return true;
   }
 
-  loseOnRepetition() {
+  get loseOnRepetition() {
     // If current side is under check: lost
     return this.underCheck(this.turn);
   }