Backward compatibility for Ball variant (wildebeest)
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 10 Feb 2021 12:35:05 +0000 (13:35 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 10 Feb 2021 12:35:05 +0000 (13:35 +0100)
client/public/images/pieces/Ball/bw.svg [new symlink]
client/public/images/pieces/Ball/ww.svg [new symlink]
client/src/variants/Ball.js

diff --git a/client/public/images/pieces/Ball/bw.svg b/client/public/images/pieces/Ball/bw.svg
new file mode 120000 (symlink)
index 0000000..ee01c99
--- /dev/null
@@ -0,0 +1 @@
+../Wildebeest/bw.svg
\ No newline at end of file
diff --git a/client/public/images/pieces/Ball/ww.svg b/client/public/images/pieces/Ball/ww.svg
new file mode 120000 (symlink)
index 0000000..a994c13
--- /dev/null
@@ -0,0 +1 @@
+../Wildebeest/ww.svg
\ No newline at end of file
index fb2172b..8f6493a 100644 (file)
@@ -137,7 +137,7 @@ export class BallRules extends ChessRules {
     const withPrefix =
       Object.keys(V.HAS_BALL_DECODE)
       .concat([V.PHOENIX])
-      .concat(['a']);
+      .concat(['a', 'w']); //TODO: 'w' for backward compatibility - to remove
     if (withPrefix.includes(b[1])) prefix = "Ball/";
     return prefix + b;
   }