button(v-show="gameInProgress" @click="stopGame")
| Stop game
div(v-show="display=='rules'" v-html="content" class="section-content")
button(v-show="gameInProgress" @click="stopGame")
| Stop game
div(v-show="display=='rules'" v-html="content" class="section-content")
:mode="mode" :sub-mode="subMode" :variant="variant"
@computer-think="gameInProgress=false" @game-over="stopGame")
</template>
:mode="mode" :sub-mode="subMode" :variant="variant"
@computer-think="gameInProgress=false" @game-over="stopGame")
</template>
created: function() {
const vname = this.$route.params["vname"];
const idxOfVar = this.st.variants.indexOf(e => e.name == vname);
created: function() {
const vname = this.$route.params["vname"];
const idxOfVar = this.st.variants.indexOf(e => e.name == vname);
this.$route.params["vname"] + "/" + this.st.lang + ".pug")
.replace(/(fen:)([^:]*):/g, replaceByDiag);
},
this.$route.params["vname"] + "/" + this.st.lang + ".pug")
.replace(/(fen:)([^:]*):/g, replaceByDiag);
},