Android: Rodent IV as a second opponent, with its characters and famous players
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 play sheet chooses Maia or Rodent IV, and Rodent's character in a full-screen
list (docs/design/android-rodent.md, docs/decisions.md «Rodent IV на телефоне»).
The engine is built from its authors' sources by androidApp/scripts/rodent4.sh
(patches: no wordexp.h on bionic; the search thread took its parameter by reference,
which clang builds read after it was gone) and ships in both APKs; the opening books
are one checked download. Rodent's tables, its book manifest and its opponent loop
move from the desktop into crates/play, shared by both apps; uci's EngineConfig takes
an environment (RODENT4HOME).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-27 03:03:02 +03:00
parent 3dac4a185b
commit b3774d1651
42 changed files with 4098 additions and 951 deletions

View file

@ -400,7 +400,7 @@
<string name="new_game">New game</string>
<string name="own_databases">My databases</string>
<string name="own_new">+ New database</string>
<string name="own_empty">Games you enter or play against Maia will be here</string>
<string name="own_empty">Games you enter or play against the computer will be here</string>
<string name="files">Files</string>
<string name="own_default_name">My games</string>
<string name="own_new_title">New database</string>
@ -483,7 +483,6 @@
<string name="color_white">White</string>
<string name="color_black">Black</string>
<string name="color_random">Random</string>
<string name="play_opponent">Opponent — Maia %1$s</string>
<string name="play_measured">Maia’s own rating: it does not match a person’s Elo.</string>
<string name="play_download_note">Maia is downloaded once (%1$s MB, from huggingface.co, the authors\' own file).</string>
<string name="play_download_and_play">Download and play</string>
@ -500,7 +499,6 @@
<string name="play_maia_resigns">Maia resigns</string>
<string name="play_note_from">From here on, a game against Maia %1$s.</string>
<string name="play_abort">Abort</string>
<string name="play_with_maia">Play with Maia</string>
<string name="play_your_name">Your name</string>
<string name="play_maia_ready">Maia is downloaded</string>
<string name="play_retry">Try again</string>
@ -515,7 +513,6 @@
<string name="play_saved">✓ Saved</string>
<string name="play_save">Save…</string>
<string name="play_adjourned_sub">you play %1$s · %2$s</string>
<string name="play_from_maia">Play on from here with Maia…</string>
<string name="play_from_label">After %1$s</string>
<string name="sound">Sound</string>
<string name="undo_menu">Undo</string>
@ -527,7 +524,7 @@
<string name="start_position">the starting position</string>
<string name="play_maia_stopped">Maia did not start.</string>
<string name="play_maia_reload">Download Maia again</string>
<string name="play_adjourned_q">There is a game put aside against Maia %1$s</string>
<string name="play_adjourned_q">There is a game put aside against %1$s</string>
<string name="play_continue_it">Continue it</string>
<string name="play_start_new">Start a new one</string>
<string name="play_adjourned_new_text">A new game replaces it; what was played goes into the player’s database, unfinished.</string>
@ -535,13 +532,13 @@
<string name="end_agreement">by agreement</string>
<string name="play_draw_declined">Maia declines the draw</string>
<string name="play_draw_later">Maia declined; offer again after two of her moves</string>
<string name="play_draw_no_engine">Maia answers a draw offer with Stockfish: download it in the game screen («Engine»)</string>
<string name="play_draw_no_engine">Maia answers a draw offer with Stockfish: download it in the game screen (“Engine”)</string>
<string name="player_db_name">%1$s — games against the computer</string>
<string name="player_db_shared">Games against the computer</string>
<string name="player_written">✓ In “%1$s”, No. %2$s ›</string>
<string name="player_kept_unfinished">Game written to “%1$s” unfinished</string>
<string name="player_db_row">recorded automatically</string>
<string name="record_games">Write games against Maia to the player’s database</string>
<string name="record_games">Write games against the computer to the player’s database</string>
<string name="player_line_existing">Games are written to “%1$s”</string>
<string name="player_line_new">Games will be written to a new database “%1$s”.</string>
<string name="player_line_noname">Without a name games go to “%1$s”. Enter a name to have a database of your own.</string>
@ -550,6 +547,116 @@
<string name="player_write_failed">Could not write to “%1$s”: %2$s</string>
<string name="play_adjourned_replaced">A new game replaces it.</string>
<string name="last_opened">Last opened</string>
<string name="play_adjourned_title">Game against Maia %1$s</string>
<string name="play_adjourned_title">Game against %1$s</string>
<string name="play_move_n">move %1$d</string>
<!-- Rodent IV on the phone (android-rodent.md §9); the characters and the desktop's sentences come from apps/desktop/src/i18n.rs. -->
<string name="rodent_iv_amanda">Amanda</string>
<string name="rodent_iv_amanda_about">Attacks first, then plays for active pieces.</string>
<string name="rodent_iv_cloe">Cloe</string>
<string name="rodent_iv_cloe_about">Likes closed positions.</string>
<string name="rodent_iv_deborah">Deborah</string>
<string name="rodent_iv_deborah_about">Defends well and likes her bishops.</string>
<string name="rodent_iv_defender">Defender</string>
<string name="rodent_iv_defender_about">Solid and careful; content with a draw.</string>
<string name="rodent_iv_dynamic">Dynamic</string>
<string name="rodent_iv_dynamic_about">Attacks, likes bishops, sacrifices now and then.</string>
<string name="rodent_iv_grumpy">Grumpy</string>
<string name="rodent_iv_grumpy_about">Attack and restraint; likes blocked positions, avoids draws.</string>
<string name="rodent_iv_partisan">Partisan</string>
<string name="rodent_iv_partisan_about">Attacks after quiet, stealthy openings.</string>
<string name="rodent_iv_pawnsacker">Pawnsacker</string>
<string name="rodent_iv_pawnsacker_about">Balanced, but gives up pawns more readily.</string>
<string name="rodent_iv_pedrita">Pedrita</string>
<string name="rodent_iv_pedrita_about">Pawns, defence and restraint.</string>
<string name="rodent_iv_preston">Preston</string>
<string name="rodent_iv_preston_about">A materialistic, moderate attacker.</string>
<string name="rodent_iv_simple">Simple</string>
<string name="rodent_iv_simple_about">The most computer-like: plain, sound chess.</string>
<string name="rodent_iv_spitfire">Spitfire</string>
<string name="rodent_iv_spitfire_about">Sharp and aggressive.</string>
<string name="rodent_iv_strangler">Strangler</string>
<string name="rodent_iv_strangler_about">A boa constrictor: squeezes slowly, very human-like.</string>
<string name="rodent_iv_alekhine">Alekhine</string>
<string name="rodent_iv_alekhine_about">Dynamic attacks and deep combinations.</string>
<string name="rodent_iv_anand">Anand</string>
<string name="rodent_iv_anand_about">Quick, universal play with sharp openings.</string>
<string name="rodent_iv_anderssen">Anderssen</string>
<string name="rodent_iv_anderssen_about">A romantic attacker of the 19th century: sacrifices.</string>
<string name="rodent_iv_bosboom">Bosboom</string>
<string name="rodent_iv_bosboom_about">Offbeat openings and creative blitz play.</string>
<string name="rodent_iv_botvinnik">Botvinnik</string>
<string name="rodent_iv_botvinnik_about">Scientific, strategic play from deep preparation.</string>
<string name="rodent_iv_fischer">Fischer</string>
<string name="rodent_iv_fischer_about">Clear, classical and precise.</string>
<string name="rodent_iv_karpov">Karpov</string>
<string name="rodent_iv_karpov_about">Positional squeeze, prophylaxis and technique.</string>
<string name="rodent_iv_kasparov">Kasparov</string>
<string name="rodent_iv_kasparov_about">Initiative and powerful attack.</string>
<string name="rodent_iv_kortchnoi">Kortchnoi</string>
<string name="rodent_iv_kortchnoi_about">A tenacious defender and counter-attacker.</string>
<string name="rodent_iv_larsen">Larsen</string>
<string name="rodent_iv_larsen_about">Original and risky, with offbeat openings.</string>
<string name="rodent_iv_lasker">Lasker</string>
<string name="rodent_iv_lasker_about">A practical, psychological fighter.</string>
<string name="rodent_iv_marshall">Marshall</string>
<string name="rodent_iv_marshall_about">A swashbuckling attacker with gambits.</string>
<string name="rodent_iv_morphy">Morphy</string>
<string name="rodent_iv_morphy_about">Quick development and open lines.</string>
<string name="rodent_iv_nimzowitsch">Nimzowitsch</string>
<string name="rodent_iv_nimzowitsch_about">Restraint, blockade and overprotection.</string>
<string name="rodent_iv_petrosian">Petrosian</string>
<string name="rodent_iv_petrosian_about">Prophylaxis and safety first.</string>
<string name="rodent_iv_reti">Reti</string>
<string name="rodent_iv_reti_about">Hypermodern: controls the centre from afar.</string>
<string name="rodent_iv_rubinstein">Rubinstein</string>
<string name="rodent_iv_rubinstein_about">Classical positional play, great in endgames.</string>
<string name="rodent_iv_spassky">Spassky</string>
<string name="rodent_iv_spassky_about">A universal player, at home in any position.</string>
<string name="rodent_iv_steinitz">Steinitz</string>
<string name="rodent_iv_steinitz_about">The founder of positional play, a stubborn defender.</string>
<string name="rodent_iv_tal">Tal</string>
<string name="rodent_iv_tal_about">The magician from Riga: sacrifices and attack.</string>
<string name="rodent_iv_tarrasch">Tarrasch</string>
<string name="rodent_iv_tarrasch_about">Classical rules: space, development, active pieces.</string>
<string name="rodent_iv_topalov">Topalov</string>
<string name="rodent_iv_topalov_about">Aggressive and dynamic, sacrifices the exchange.</string>
<string name="opp_maia_sub">plays like a human</string>
<string name="opp_rodent_sub">strong, with a style</string>
<string name="like_human">Like a human</string>
<string name="maia_no_style">Maia does not pick a style: she plays like people of her rating.</string>
<string name="rodent_measured">Rodent’s own rating (UCI_Elo): it does not match a person’s Elo.</string>
<string name="rodent_resigns">Rodent resigns</string>
<string name="end_rodent_resigned">Rodent resigned</string>
<string name="rodent_draw_declined">Rodent declines the draw</string>
<string name="rodent_draw_later">Rodent declined; offer again after two of its moves</string>
<string name="rodent_position_lost">Its position is lost. Accept the win, or play to the end?</string>
<string name="play_button">Play</string>
<string name="play_button_cd">Play the computer</string>
<string name="strength_n">Strength: %1$s</string>
<string name="pick_title">Who to play</string>
<string name="pick_intro">A character is a style and openings; the slider sets the strength.</string>
<string name="pick_players">Great players</string>
<string name="pick_characters">Characters</string>
<string name="pick_change">Change</string>
<string name="pick_player_cd">%1$s, great player</string>
<string name="pick_character_cd">%1$s, character</string>
<string name="character_cd">Character: %1$s</string>
<string name="books_ready">Rodent IV and its opening books are on the phone</string>
<string name="books_offer">Rodent IV opening books: %1$s MB, downloaded once from github.com</string>
<string name="books_not_needed">From a position no opening book is needed: Rodent IV plays at once</string>
<string name="books_without">No book</string>
<string name="books_without_cd">No book: play without the opening book</string>
<string name="books_notification">Rodent IV opening books</string>
<string name="books_settings">Rodent IV — opening books</string>
<string name="books_downloaded_mb">downloaded · %1$s MB</string>
<string name="books_missing_mb">not downloaded · %1$s MB</string>
<string name="books_deleted">Opening books deleted</string>
<string name="rodent_draw_no_engine">Rodent answers a draw offer with Stockfish: download it in the game screen (“Engine”)</string>
<string name="rodent_stopped">Rodent did not start.</string>
<string name="rodent_restart">Restart</string>
<string name="play_note_from_rodent">From here on, a game against Rodent IV %1$s · %2$s.</string>
<string name="rodent_stopped_playing">Rodent stopped during the game.</string>
<string name="strength_range">%1$s, from %2$s to %3$s</string>
<string name="strength">Strength</string>
<string name="books_delete_cd">Delete the opening books</string>
</resources>