Code reorganization
[vchess.git] / client / src / variants / Checkered.js
similarity index 98%
rename from client/client_OLD/javascripts/variants/Checkered.js
rename to client/src/variants/Checkered.js
index 9de46ff..1f6750b 100644 (file)
@@ -55,8 +55,8 @@ class CheckeredRules extends ChessRules
                super.setFlags(fenflags); //castleFlags
                this.pawnFlags =
                {
-                       "w": _.map(_.range(8), i => true), //pawns can move 2 squares?
-                       "b": _.map(_.range(8), i => true)
+                       "w": [...Array(8).fill(true)], //pawns can move 2 squares?
+                       "b": [...Array(8).fill(true)],
                };
                if (!fenflags)
                        return;