X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=0c2279601988102c3f7b9672ca51bcc2537639b4;hb=c4f91d3ff756bf1c8948433e0584e0e4235f3524;hp=000035c69d7c038b85d858ae769a523e4972cfa4;hpb=b6c5641fbaa6b51088bf2fbf77e87fddd43c745f;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 000035c6..0c227960 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -1,77 +1,90 @@
.row
.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- //BaseGame(:variant="variant.name" @game-over=".....TODO")
- //localStorage["score"] = score;
-
-
- .button-group(v-if="mode!='analyze'")
+ BaseGame(:game="game" :vr="vr" ref="basegame"
+ @newmove="processMove" @gameover="gameOver")
+ .button-group(v-if="game.mode!='analyze'")
button(@click="offerDraw") Draw
button(@click="abortGame") Abort
button(@click="resign") Resign
- div(v-if="mode=='corr'")
- textarea(v-show="score=='*' && vr.turn==mycolor" v-model="corrMsg")
+ div(v-if="game.mode=='corr'")
+ textarea(v-show="score=='*' && vr.turn==game.mycolor" v-model="corrMsg")
div(v-show="cursor>=0") {{ moves[cursor].message }}
+
+