Complete Magnetic rules
[vchess.git] / public / javascripts / components / game.js
index 1863285..74092b5 100644 (file)
@@ -412,7 +412,6 @@ Vue.component('my-game', {
                };
                const socketMessageListener = msg => {
                        const data = JSON.parse(msg.data);
-                       console.log("Receive message: " + data.code);
                        switch (data.code)
                        {
                                case "newgame": //opponent found
@@ -635,7 +634,7 @@ Vue.component('my-game', {
                        }
                        else //against computer
                        {
-                               this.mycolor = Math.random() < 0.5 ? 'w' : 'b';
+                               this.mycolor = "w";//Math.random() < 0.5 ? 'w' : 'b';
                                if (this.mycolor == 'b')
                                        setTimeout(this.playComputerMove, 500);
                        }