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

@ -676,3 +676,25 @@ fn an_engine_can_run_below_the_app() {
calm.quit();
plain.quit();
}
#[cfg(target_os = "linux")]
#[test]
fn an_engine_gets_the_variables_given() {
let engine = Engine::spawn_with(
EngineConfig {
env: vec![("CP_TEST_HOME".into(), "/some/where".into())],
..config(&[])
},
Box::new(|| {}),
)
.expect("spawn");
let environ = std::fs::read(format!("/proc/{}/environ", engine.pid())).expect("environ");
assert!(
environ
.split(|&b| b == 0)
.any(|v| v == b"CP_TEST_HOME=/some/where")
);
// The app's own environment goes on as well.
assert!(environ.split(|&b| b == 0).any(|v| v.starts_with(b"PATH=")));
engine.quit();
}