mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-09-14 20:19:34 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user