revert(loldle): restore default max guesses to pre-tuning values

Roll classic loldle back to 8 (from 6) and emoji to 5 (from 4). The
/<module>_setmax override command stays — chats that want tighter limits
can opt in instead of having defaults forced on them.
This commit is contained in:
2026-05-07 15:06:25 +07:00
parent 14e5668c96
commit 5782e4779e
3 changed files with 8 additions and 10 deletions
+3 -4
View File
@@ -10,10 +10,9 @@
* keeps stats isolated per mode.
*/
// Default tightened from 5 → 4: three emojis are a strong signal, so 4 keeps
// tension without being unfair. Admins can override per-subject via the
// hidden /loldle_emoji_setmax command (bounded by MAX_GUESSES_CAP).
const MAX_GUESSES = 4;
// Default round length. Admins can override per-subject via the hidden
// /loldle_emoji_setmax command (bounded by MAX_GUESSES_CAP).
const MAX_GUESSES = 5;
const MAX_GUESSES_CAP = 10;
const GAME_TTL_SECONDS = 60 * 60 * 24 * 7;
+2 -2
View File
@@ -1,6 +1,6 @@
# Loldle Module
Classic-mode League of Legends champion guessing game. Players get 6 guesses
Classic-mode League of Legends champion guessing game. Players get 8 guesses
(default; per-subject override via the hidden `/loldle_setmax` command, capped
at 10) to identify a hidden champion; each guess is compared across 7
attributes and the board is rendered as a monospace Telegram table.
@@ -47,7 +47,7 @@ empty board gives no hints, so it shouldn't count against the clock.
- `lookup.js` — normalizes user input to a champion record.
- `render.js` — Telegram HTML `<pre>` monospace table with auto-widthed
label column.
- `state.js` — KV persistence (`MAX_GUESSES = 6` default, `MAX_GUESSES_CAP = 10`,
- `state.js` — KV persistence (`MAX_GUESSES = 8` default, `MAX_GUESSES_CAP = 10`,
per-subject stats and config override).
- `handlers.js` — subject resolution (user id in DMs, chat id in groups) +
command flow.
+3 -4
View File
@@ -10,10 +10,9 @@
* at render time, so the board always reflects the live champions.json.
*/
// Default round length. The 7-axis grid leaks enough info per guess that 6
// is a fair target for typical play; admins can override per-subject via the
// hidden /loldle_setmax command (bounded by MAX_GUESSES_CAP).
const MAX_GUESSES = 6;
// Default round length. Admins can override per-subject via the hidden
// /loldle_setmax command (bounded by MAX_GUESSES_CAP).
const MAX_GUESSES = 8;
const MAX_GUESSES_CAP = 10;
// Upper bound for a round — long enough for any real session, short enough
// that stale KV entries get reclaimed automatically.