Android stage 1: databases, games, the game viewer and the engine

androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
  with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
  (variations, comments, NAG), forks, paging games, hold-to-repeat steps,
  comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
  run from nativeLibraryDir through the uci crate. Two builds: "full" with the
  network inside, "light" downloading it on request (resume, SHA-256 check).
  The time per position, lines, line preview on the board; the engine quits
  when the screen goes away.
- Settings and About with the licenses.

mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-22 01:40:37 +03:00
parent 0c912ac669
commit 68fcabd691
59 changed files with 5049 additions and 25 deletions

View file

@ -0,0 +1,121 @@
<resources>
<string name="app_name">ChessPenguin</string>
<string name="sample_classics">Classic games</string>
<string name="sample_alekhine">Alekhine</string>
<string name="empty_title">Your databases will be here</string>
<string name="empty_text">Add a PGN file or an archive .zip/.7z — from the phone or a cloud.</string>
<string name="add_database">Add database</string>
<string name="open_samples">Open sample games</string>
<string name="not_opened">not opened yet · %1$s</string>
<plurals name="games_count">
<item quantity="one">%1$s game</item>
<item quantity="other">%1$s games</item>
</plurals>
<string name="games_with_format">%1$s · %2$s</string>
<string name="menu">Menu</string>
<string name="rename">Rename</string>
<string name="remove">Remove from the list</string>
<string name="rename_hint">The name on the list. The file does not change.</string>
<string name="cancel">Cancel</string>
<string name="save">Save</string>
<string name="removed">Database removed from the list</string>
<string name="undo">Undo</string>
<string name="back">Back</string>
<string name="reading">Reading…</string>
<string name="open_failed">Could not open the database</string>
<string name="no_access">No access to the file. Add it again.</string>
<string name="search">Search</string>
<string name="search_hint">Player, event, year</string>
<string name="nothing_found">Nothing found</string>
<string name="clear">Clear</string>
<string name="game_of">%1$d of %2$d</string>
<string name="previous_game">Previous game</string>
<string name="next_game">Next game</string>
<string name="flip">Flip</string>
<string name="to_start">To the start</string>
<string name="move_back">Move back</string>
<string name="move_forward">Move forward</string>
<string name="to_end">To the end</string>
<string name="next_moves">Next:</string>
<string name="board_hint">This is a game viewer. Moves are stepped with the ◀ ▶ buttons below.</string>
<string name="board_description">Board, position after %1$s</string>
<string name="board_start">Board, starting position</string>
<string name="white_won">White won</string>
<string name="black_won">Black won</string>
<string name="draw">Draw</string>
<string name="game_failed">Could not read the game</string>
<string name="engine">Engine</string>
<string name="thinking">Thinking…</string>
<string name="depth">d. %1$d</string>
<string name="paused">paused</string>
<string name="deeper">Deeper</string>
<string name="more_lines">More lines</string>
<string name="fewer_lines">Fewer lines</string>
<string name="engine_not_answering">The engine is not answering</string>
<string name="engine_not_starting">The engine does not start on this phone</string>
<string name="restart">Restart</string>
<string name="engine_line_preview">Engine line · move %1$d of %2$d</string>
<string name="close">Close</string>
<string name="engine_sheet_title">Stockfish engine</string>
<string name="engine_sheet_text">Evaluates the position and shows the best moves. Works offline — it only has to be downloaded once.</string>
<string name="engine_size">Size: %1$d MB</string>
<string name="engine_metered">No Wi-Fi now: the download will go over mobile data.</string>
<string name="not_now">Not now</string>
<string name="download">Download</string>
<string name="downloaded_of">Downloaded %1$d of %2$d MB</string>
<string name="cancel_download">Cancel</string>
<string name="download_cancelled">Download cancelled</string>
<string name="engine_ready">The engine is ready</string>
<string name="no_internet">No internet. Connect to a network and try again.</string>
<string name="interrupted">The download was interrupted. What came is kept.</string>
<string name="no_space">Not enough space: %1$d MB needed.</string>
<string name="corrupt">The engine file was damaged in the download. Download it again.</string>
<string name="retry">Try again</string>
<string name="resume">Continue</string>
<string name="download_again">Download again</string>
<string name="ok">OK</string>
<string name="preparing_engine">Preparing the engine…</string>
<string name="settings">Settings</string>
<string name="group_look">Look</string>
<string name="group_board">Board</string>
<string name="group_engine">Engine</string>
<string name="theme">Theme</string>
<string name="theme_system">As in the system</string>
<string name="theme_light">Light</string>
<string name="theme_dark">Dark</string>
<string name="notation">Move notation</string>
<string name="notation_latin">Latin letters (K Q R B N)</string>
<string name="notation_figurines">Figurines</string>
<string name="notation_local">Letters of the language</string>
<string name="notation_hint">Only how moves look on the screen. PGN always keeps K Q R B N.</string>
<string name="animation">Piece animation</string>
<string name="best_arrow">Best-move arrow</string>
<string name="vibration">Vibration</string>
<string name="engine_built_in">Stockfish 19 · built in</string>
<string name="engine_downloaded">Stockfish 19 · downloaded</string>
<string name="engine_missing">Not downloaded · Download (%1$d MB)</string>
<string name="engine_downloading">Downloading… %1$d of %2$d MB</string>
<string name="engine_delete">Delete the engine (frees %1$d MB)</string>
<string name="engine_delete_question">Delete the engine? It can be downloaded again.</string>
<string name="delete">Delete</string>
<string name="lines">Lines</string>
<string name="time_per_position">Time per position</string>
<string name="seconds">%1$d s</string>
<string name="one_minute">1 min</string>
<string name="no_limit">No limit</string>
<string name="threads">Threads</string>
<string name="memory">Memory</string>
<string name="megabytes">%1$d MB</string>
<string name="engine_battery">The engine uses the battery. It stops by itself when the screen goes dark.</string>
<string name="about">About</string>
<string name="build_full">Stockfish built in</string>
<string name="build_light">Stockfish downloaded in the app</string>
<string name="about_text">A viewer of chess databases: PGN, ChessBase, archives. Files are only read, never changed.</string>
<string name="licenses">Licenses</string>
<string name="website">Website and source code</string>
</resources>