From 5b665a840bd3193c9be7b21fbe6f66e119e92d74 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 23 Jul 2024 21:18:08 +0200 Subject: New time control. --- public/join.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'public/join.js') diff --git a/public/join.js b/public/join.js index 08e56fb..81fc665 100644 --- a/public/join.js +++ b/public/join.js @@ -2,11 +2,11 @@ /* global game, roles, players, blacklist, user_id */ -const pace_text = [ - "", - "Live!", - "Fast \u2013 many moves per day", - "Slow \u2013 one move per day", +const PACE_TEXT = [ + "No time control", + "7+ moves per day", + "3+ moves per day", + "1+ moves per day", ] let start_status = 0 @@ -321,7 +321,8 @@ function create_game_list() { if (game.scenario !== "Standard") create_game_list_item(list, "Scenario", game.scenario) create_game_list_item(list, "Options", format_options(game.options)) - create_game_list_item(list, "Pace", pace_text[game.pace]) + if (game.pace > 0) + create_game_list_item(list, "Pace", PACE_TEXT[game.pace]) create_game_list_item(list, "Notice", game.notice) if (game.owner_id) -- cgit v1.2.3