Draft Bario (unfinished)
[xogo.git] / variants / Hex / class.js
index 1919bc8..774de17 100644 (file)
@@ -78,7 +78,7 @@ export default class HexRules extends AbstractClickFillRules {
     // NOTE: size.x == size.y (square boards)
     const emptyCount = C.FenEmptySquares(this.size.x);
     return {
-      fen: (emptyCount + "/").repeat(this.size.x).slice(0, -1) + " w 0",
+      fen: (emptyCount + "/").repeat(this.size.x - 1) + emptyCount,
       o: {}
     };
   }
@@ -171,7 +171,7 @@ export default class HexRules extends AbstractClickFillRules {
     this.turn = C.GetOppCol(this.turn);
   }
 
-  getCurrentScore(move) {
+  getCurrentScore() {
     const oppCol = C.GetOppCol(this.turn);
     // Search for connecting path of opp color:
     let explored = {}, component;