- this.fenStart = fen;
- this.mycolor = (Math.random() < 0.5 ? "w" : "b");
- console.log(this.mycolor);
- this.players = ["Myself","Computer"];
- if (this.mycolor == "b")
- this.players = this.players.reverse();
+ this.gameInfo.fenStart = fen;
+ this.gameInfo.mycolor = (Math.random() < 0.5 ? "w" : "b");
+ this.gameInfo.players = ["Myself","Computer"];
+ if (this.gameInfo.mycolor == "b")
+ this.gameInfo.players = this.gameInfo.players.reverse();