Attempt to fix Eightpieces
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 10 May 2021 18:59:46 +0000 (20:59 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 10 May 2021 18:59:46 +0000 (20:59 +0200)
client/src/variants/Eightpieces.js

index dc7580b..92a4a90 100644 (file)
@@ -204,8 +204,8 @@ export class EightpiecesRules extends ChessRules {
         // => move sentry on other bishop for random color
         const c = sample(['w', 'b'], 1);
         pieceLine[c] = pieceLine[c]
-                       .replace('b', 't'); //tmp
-                       .replace('s', 'b');
+                       .replace('b', 't') //tmp
+                       .replace('s', 'b')
                        .replace('t', 's');
       }
     }