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/docs/tips.html | 43 ++++++++++++++++++++++++++++++------------- public/join.js | 13 +++++++------ 2 files changed, 37 insertions(+), 19 deletions(-) (limited to 'public') diff --git a/public/docs/tips.html b/public/docs/tips.html index 1faa5eb..8e331c7 100644 --- a/public/docs/tips.html +++ b/public/docs/tips.html @@ -82,27 +82,44 @@ Use this if you need to check something on the map that is obscured. For everyone's enjoyment, please respect the pace requests! If someone wants a fast game, don't join if you can only play one move per day. +

+Each player has a clock that ticks down while it's their turn. +When the clock runs out, they forfeit the game. +Each time a player takes a move, they get some time back on the clock, but there's a limit to how +much time you can accumulate. +

-
Live + +
No time control
-Let your opponents know if you're going away! -If you need to resume the game another day, arrange a time when you can all continue, -or agree to continue playing at a different pace. +For friendly games without an enforced pace. -
Fast +
+Live / Blitz (7+ moves per day) +
+24h +4h/move up to 72h
-Turn on notifications so you can take your turns promptly. -If you see that your opponent is online (the dot next to their name is filled in) -then stay in the game for a while and perhaps you can play live for a bit. -
Slow +
+Fast (3+ moves per day) +
+48h +12h/move up to 120h
-If you create a game and know you can not play more than one move per day, -please pick this option to set the appropriate expectations. -
Any +
+Slow +(1+ move per day)
-Anything goes. Read the game notice and adapt! +72h +36h/move up to 240h
+

+When playing live, let your opponents know if you're going away! +If you need to resume a live game another day, schedule a time when you can continue. + +

+Turn on notifications so you can take your turns promptly. +If you see that your opponent is online (the dot next to their name is filled in) +then stay in the game for a while and perhaps you can play live for a bit. + 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