From: Benjamin Auder Date: Fri, 6 Mar 2020 17:32:06 +0000 (+0100) Subject: Fix README, TODO and a mistake in MyGames X-Git-Url: https://git.auder.net/doc/html/css/current/git-logo.png?a=commitdiff_plain;h=620a88ede2ad25e66d9cbb521388ee53e4a564c0;p=vchess.git Fix README, TODO and a mistake in MyGames --- diff --git a/README.md b/README.md index b90c60d7..c92b1459 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,7 @@ Website to play to many chess variants, including rare ones - some almost never seen elsewhere, like "l'Échiqueté" [french], renamed "checkered chess" -in English. - -Notes: - - Games start with a random assymetric position! - - No ratings, no tournaments: no "competition spirit" +in English. No ratings, no tournaments: no "competition spirit". ## Get involved diff --git a/TODO b/TODO index 3d736583..833dcb32 100644 --- a/TODO +++ b/TODO @@ -11,9 +11,6 @@ Rematch button (change colors, re-apply randomness params (which should be saved --> need a bit more duplicated logic: in Game page, listen for newgame, and add a "launchGame" function Will need a 'rematch' field in Game on server -Store sid on server in user, so that multi-accounts on same browser works better -(and require no more the check on names in Game in isConnected() ) - # New variants 8-pieces https://www.youtube.com/watch?v=XZ8K02Da7Ps&list=PLRyjH8DPuzTBiym6lA0r84P8N0HnTtZyN&index=6&t=0s https://www.chessvariants.com/rules/8-piece-chess diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index e8439317..bcf7d182 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -102,8 +102,10 @@ export default { (rem == 1 && myColor == "b") ); }; - if (game.type == "live" || !isMyTurn(game)) + if (game.type == "live" || !isMyTurn(game)) { this.$router.push("/game/" + game.id); + return; + } // It's my turn in this game. Are there others? let nextIds = ""; let otherCorrGamesMyTurn = this.corrGames.filter(