: "Abort and remove game?";
if (confirm(this.st.tr[message])) {
const afterDelete = () => {
- if (game.score == "*") this.$emit("abort", game);
+ if (game.score == "*") this.$emit("abortgame", game);
this.$set(this.deleted, game.id, true);
};
if (game.type == "live")
h3 End of the game
-p The goal is to "suck" the opponent's king to your own first rank.
+p The goal is to attract the opponent's king to your own first rank.
figure.diagram-container
.diagram
h3 Fin de la partida
-p El objetivo es "absorber" al rey contrario a tu primera fila.
+p El objetivo es atraer al rey contrario a tu primera fila.
figure.diagram-container
.diagram
h3 Fin de la partie
-p Le but est d'"aspirer" le roi adverse jusqu'à votre première rangée.
+p Le but est d'attirer le roi adverse jusqu'à votre première rangée.
figure.diagram-container
.diagram
if (!err) {
let transaction = db.transaction(["games"], "readwrite");
transaction.oncomplete = function() {
- callback({}); //everything's fine
+ callback(); //everything's fine
};
transaction.objectStore("games").delete(gameId);
}
this.virtualClocks = this.game.clocks.map(s => ppt(s).split(':'));
return;
}
+ clearInterval(this.clockUpdate);
const currentTurn = this.vr.turn;
const currentMovesCount = this.game.moves.length;
const colorIdx = ["w", "b"].indexOf(currentTurn);
v-show="display=='live'"
:games="liveGames"
@show-game="showGame"
+ @abortgame="abortGame"
)
GameList(
v-show="display=='corr'"
:games="corrGames"
@show-game="showGame"
- @abort="abortGame"
+ @abortgame="abortGame"
)
</template>
case "mabort": {
const gamePg = "/game/" + obj.gid;
if (!!clients[gamePg] && !!clients[gamePg][obj.target]) {
- Object.keys(clients[gamePg][target]).forEach(x => {
+ Object.keys(clients[gamePg][obj.target]).forEach(x => {
send(
clients[gamePg][obj.target][x],
{ code: "abort" }