Play: Rodent's measured strength (2250–3000; his lowest setting already ≈2250)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

The bottom of the chain is now tied to the Maia-1 bots and Maia-3 levels
(6300 games): the table moves up; between Maia's 2100 and Rodent's 2250 nobody
plays and the slider passes over it, saying so. research/rodent.md: the
measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-26 03:30:55 +03:00
parent e471de0a5b
commit 88027f8325
3 changed files with 58 additions and 31 deletions

View file

@ -11023,17 +11023,6 @@ const ROWS: &[[&str; 9]] = &[
"Rodent V {elo} dan o‘ynaydi: kuch {elo} ga ko‘tarildi.",
"Rodent V {elo} бастап ойнайды: күш {elo} дейін көтерілді.",
],
[
"Stronger than {elo} plays Rodent V: Maia does not play that strong.",
"Сильнее {elo} играет Rodent V: Maia так сильно не играет.",
"Au-delà de {elo}, c’est Rodent V : Maia ne joue pas aussi fort.",
"Stärker als {elo} spielt Rodent V: so stark spielt Maia nicht.",
"Por encima de {elo} juega Rodent V: Maia no juega tan fuerte.",
"Oltre {elo} gioca Rodent V: Maia non gioca così forte.",
"Acima de {elo} joga o Rodent V: a Maia não joga tão forte.",
"{elo} dan kuchliroq Rodent V o‘ynaydi: Maia bunchalik kuchli o‘ynamaydi.",
"{elo}-ден күштірек Rodent V ойнайды: Maia мұндай күшті ойнамайды.",
],
[
"Weaker than {elo} plays Maia.",
"Слабее {elo} играет Maia.",
@ -11499,6 +11488,17 @@ const ROWS: &[[&str; 9]] = &[
"kuchli, uslubli",
"күшті, стилімен",
],
[
"Stronger than {elo} plays Rodent V, from {min} on: Maia does not play that strong.",
"Сильнее {elo} играет Rodent V, от {min}: Maia так сильно не играет.",
"Au-delà de {elo}, c’est Rodent V, à partir de {min} : Maia ne joue pas aussi fort.",
"Stärker als {elo} spielt Rodent V, ab {min}: so stark spielt Maia nicht.",
"Por encima de {elo} juega Rodent V, desde {min}: Maia no juega tan fuerte.",
"Oltre {elo} gioca Rodent V, da {min}: Maia non gioca così forte.",
"Acima de {elo} joga o Rodent V, a partir de {min}: a Maia não joga tão forte.",
"{elo} dan kuchliroq Rodent V o‘ynaydi, {min} dan: Maia bunchalik kuchli o‘ynamaydi.",
"{elo}-ден күштірек Rodent V ойнайды, {min} бастап: Maia мұндай күшті ойнамайды.",
],
[
"Maia resigned",
"Maia сдалась",

View file

@ -618,10 +618,10 @@ mod tests {
#[test]
fn rodent_strength_to_uci_elo() {
use super::{RODENT_MAX, RODENT_MIN, rodent_elo};
assert_eq!(rodent_elo(1890), Some(800));
assert!(rodent_elo(RODENT_MIN).is_some_and(|e| e < 900));
assert_eq!(rodent_elo(2549), Some(2000));
let mid = rodent_elo(2635).unwrap();
assert_eq!(rodent_elo(2254), Some(800));
assert!(rodent_elo(RODENT_MIN).is_some_and(|e| e <= 800));
assert_eq!(rodent_elo(2715), Some(2000));
let mid = rodent_elo(2778).unwrap();
assert!((2090..=2110).contains(&mid), "{mid}");
assert!(rodent_elo(RODENT_MAX).is_some_and(|e| e < 3000));
// Stronger always means a higher setting.
@ -890,23 +890,24 @@ pub fn engine_for(start: &Start) -> Option<(Engine, std::path::PathBuf)> {
/// Lichess blitz scale (default personality, its book off; 3900 games with random
/// openings against Maia and the Maia-1 bots, and level against level).
const RODENT: &[(u32, u32)] = &[
(800, 1890),
(1000, 1994),
(1200, 2065),
(1400, 2135),
(1600, 2220),
(1800, 2376),
(2000, 2549),
(2200, 2721),
(2400, 2841),
(2600, 2971),
(2800, 3119),
(3000, 3230),
(800, 2254),
(1000, 2344),
(1200, 2401),
(1400, 2458),
(1600, 2506),
(1800, 2606),
(2000, 2715),
(2200, 2842),
(2400, 2948),
(2600, 3079),
(2800, 3226),
(3000, 3338),
];
/// The weakest Rodent plays (his lowest setting), and the strongest offered: a strong
/// grandmaster's blitz; beyond, the scale is not measured against people.
pub const RODENT_MIN: u32 = 1900;
/// grandmaster's blitz; beyond, the scale is not measured against people. Between Maia's
/// top and his bottom nobody plays: the slider passes over it.
pub const RODENT_MIN: u32 = 2250;
pub const RODENT_MAX: u32 = 3000;
/// The UCI_Elo for Rodent to play at `strength` (in proportion between the measured
@ -1278,13 +1279,15 @@ impl Dialog {
// bottom: Maia. Moving back keeps the choice, with a word about it.
if self.prefs.rival == Rival::Maia && self.prefs.strength > STRENGTH_MAX {
self.prefs.rival = Rival::Rodent;
self.prefs.strength = self.prefs.strength.max(RODENT_MIN);
self.auto_switched = true;
self.event = Some(crate::i18n::trf(
"Stronger than {elo} plays Rodent V: Maia does not play that strong.",
&[("elo", &STRENGTH_MAX)],
"Stronger than {elo} plays Rodent V, from {min} on: Maia does not play that strong.",
&[("elo", &STRENGTH_MAX), ("min", &RODENT_MIN)],
));
} else if self.prefs.rival == Rival::Rodent && self.prefs.strength < RODENT_MIN {
self.prefs.rival = Rival::Maia;
self.prefs.strength = self.prefs.strength.min(STRENGTH_MAX);
self.auto_switched = false;
self.event = Some(crate::i18n::trf("Weaker than {elo} plays Maia.", &[("elo", &RODENT_MIN)]));
} else if self.auto_switched && self.prefs.strength <= STRENGTH_MAX {