{{ vr.getFen() }} @@ -93,18 +103,18 @@ Vue.component('my-game', { {{ translate("Download PGN") }}
X-Git-Url: https://git.auder.net/assets/img/logo_Westcastle.png?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=4048a3d404190ecdf93d6b9743dba9d8cac243b6;hb=7d9e99bc177972c5af8b1b45f4bfb043d8306f30;hp=594c8c221c032d46c93b7cb17c8b6e0f19f10883;hpb=7ee085c29c53c5072008e10a1ec8d3a763f42859;p=vchess.git
diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js
index 594c8c22..4048a3d4 100644
--- a/public/javascripts/components/game.js
+++ b/public/javascripts/components/game.js
@@ -24,8 +24,10 @@ Vue.component('my-game', {
vr: null, //VariantRules object, describing the game state + rules
endgameMessage: "",
orientation: "w",
+ fenStart: "",
moves: [], //TODO: initialize if gameId is defined...
+ cursor: 0,
// orientation :: button flip
// userColor: given by gameId, or fen (if no game Id)
// gameOver: known if gameId; otherwise assue false
@@ -47,6 +49,7 @@ Vue.component('my-game', {
return this.allowChat && this.mode=='human' && this.score != '*';
},
showMoves: function() {
+ return true;
return this.allowMovelist && window.innerWidth >= 768;
},
showFen: function() {
@@ -81,6 +84,13 @@ Vue.component('my-game', {
{{ vr.getFen() }} @@ -93,18 +103,18 @@ Vue.component('my-game', { {{ translate("Download PGN") }}