Start server implementation for correspondance play (early debug stage)
[vchess.git] / public / javascripts / components / room.js
index 93990ce..fbf02ee 100644 (file)
@@ -144,7 +144,7 @@ Vue.component('my-room', {
                },
                // user: last person to accept the challenge
                newGame: function(chall, user) {
-                       const fen = chall.fen || VariantRules.GenRandInitFen();
+                       const fen = chall.fen || V.GenRandInitFen();
                        const game = {}; //TODO: fen, players, time ...
                        //setStorage(game); //TODO
                        game.players.forEach(p => {