+ this.endGame(this.mycolor=="w"?"0-1":"1-0");
+ },
+ setStorage: function() {
+ localStorage.setItem("myid", this.myid);
+ localStorage.setItem("variant", variant);
+ localStorage.setItem("mycolor", this.mycolor);
+ localStorage.setItem("oppid", this.oppid);
+ localStorage.setItem("fenStart", this.fenStart);
+ localStorage.setItem("moves", JSON.stringify(this.vr.moves));
+ localStorage.setItem("fen", this.vr.getFen());
+ },
+ updateStorage: function() {
+ localStorage.setItem("moves", JSON.stringify(this.vr.moves));