Better notation [Rugby]
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 16 Feb 2021 23:08:46 +0000 (00:08 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 16 Feb 2021 23:08:46 +0000 (00:08 +0100)
client/src/variants/Rugby.js

index bbe25cb..d802ca1 100644 (file)
@@ -63,4 +63,8 @@ export class RugbyRules extends ChessRules {
     return "1/2";
   }
 
+  getNotation(move) {
+    return V.CoordsToSquare(move.start) + V.CoordsToSquare(move.end);
+  }
+
 };