ShogiCocos 1.0 Build 9 — Multilingual interface / 2026-11-13

The included application and native adapter code is GPL-3.0-or-later; see Resources/ai/LICENSE-GPL-3.0.txt and the notices in upstream files. Cocos and other dependencies retain their own licenses. Artwork and NNUE model are separate artifacts; no license to those is granted by the application code's GPL.

Engine: YaneuraOu V9.00, official revision a5ee2786c0030edc7d4a1cdfe94b04dffec55493.
The third_party/YaneuraOu source is based on the revision above with a local 2026-11-16 lifetime correction: search helper lambdas pass StateInfo by reference, because Position retains its address through the recursive search. The bundled RapidJSON stack also has a local null-pointer arithmetic correction. Native integration and target definitions are in Classes/NativeShogiEngine.* and cmake/NativeShogi.cmake. iOS links this C++ library and does not use the former WebKit/WASM path. Resources/engine is excluded from iOS.

Prerequisites: macOS ARM64, Xcode command-line tools, CMake (tested 4.3.1 with policy floor 3.5), Ninja for host tests, and the supplied local Cocos engine/dependency tree.
1. python3 tools/fetch_native_model.py
2. cmake -S tests -B build-native-tests -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
3. cmake --build build-native-tests -j 6
4. build-native-tests/native_tests "$PWD/Resources/ai/eval"
5. python3 tools/prepare_sim_libraries.py  (isolated simulator-compatible copies only)
6. tools/build_native_ios.sh simulator
7. SHOGI_DEVELOPMENT_TEAM=<your-own-team-id> tools/build_native_ios.sh device
Use your own development/distribution signing identity and provisioning profile. No private signing keys or profiles are in this source archive.

Evaluation model: official Suisho5 HalfKP256 nn.bin, 64,217,066 bytes; FV_SCALE 24; hash 768068f0d534a0603a5d38bcd143de6bbca820d5f1c95a14d40863e5b7892d76. Fetch script obtains it from the official YaneuraOu release without modification.

Strength: app levels 1–40 control search depth/node budget, capped at 2.5 seconds, 1 thread and 32 MB hash. Beginner levels occasionally select a legal random move. These are application difficulty settings, not calibrated Dan/Elo ratings or a reproduction of Piyo Shogi levels.

Scope: this change integrates the current iOS target. The existing Android target retains the earlier original-engine JNI path.

Build 3: the D character portraits, five tile materials, landing ripple and app icon replace the recovered competitor UI artwork. Generated RGBA masters are split and composed with correct system-rasterized glyphs by tools/prepare_d_art.py; their hashes and provenance are in Resources/art_d/manifest.json. Original UI PNG/JPEG files are excluded from the iOS binary and this source archive. Audio is unchanged. The match setup uses text-only single-selection rows and one compact level-control card. Source archive packaging: tools/archive_native_source.py --output <path> --fingerprint <path>.

Build 4: all four active cues (move, undo, game start, victory) now use Taira Komori recordings obtained directly from https://taira-komori.net/playing01.html, with source hashes and edits in Resources/audio/manifest.json. The iOS package excludes the entire recovered Resources/original directory, including 22 old sound files. New PCM cue gains are measured individually. Audio has a separate author permission for commercial app embedding and modification, not standalone redistribution. Therefore this corresponding-code archive omits old audio and new audio binaries. Reproduce the embedded cues with `python3 tools/prepare_new_audio.py --fetch` (requires FFmpeg and NumPy); read Resources/audio/LICENSE.txt and the author's terms first. The rest of the D UI, movement animation and native engine are unchanged.

Build 5: remove 100ms integer quantization and the initial 30-percent position jump from piece motion. MoveAnimation.h samples a continuous smoothstep on every scene update over the same 400ms duration. Touch gating and landing-effect delay use the same duration. Run the focused regression with `cmake --build build-native-tests --target move_animation_tests && ctest --test-dir build-native-tests -R move_animation_tests --output-on-failure`. Simulator-only optional sprite-position tracing uses SHOGI_QA_MOTION_TRACE and is absent from device builds.

Build 6: the live analysis screen keeps the active game playable, including the opponent's normal AI replies. A human move interrupts background analysis and starts analysis of the next human-turn position. Current-position SFEN tags prevent stale recommendations, and unknown graph samples remain blank. Background analysis uses one engine thread, 250,000 nodes and a 1.2-second limit per position; it is an automatic per-position update, not unlimited continuous pondering. Separate historical record browsing is explicitly read-only. Live analysis is opt-in and is disabled on load/resume. Existing Android engines without the capability keep historical record browsing. Focused regression: native_tests plus move_animation_tests, followed by simulator interaction for human/AI moves, auto toggle, undo, history/resume, promotion and drops. Art, audio and move-animation assets are unchanged.

Build 7: adjudicate actual games on the fourth occurrence using the complete position setup history, independently of search-root repetition pruning and its 16-ply window. Continuous-check losers are determined only at the fourth occurrence. Legacy YaneuraOu saves whose terminal flags exactly match the old premature repetition verdict are rechecked and reopened; valid mates, resignations and fourfold endings remain ended. New saves store rulesVersion=2 and terminalReason. Only the AI whose turn it is displays the thinking indicator; analysis and historical browsing do not display opponent thinking. Search budgets, model, difficulty, artwork, animation and audio are unchanged. Run native_tests, move_animation_tests and `python tests/repetition_integration.py --output <SSD-evidence-directory>` with cshogi 1.1.1 available. The latter includes both-color perpetual checks, a 20-ply cycle, legacy migration, the original 97-ply failure and all 14 archived tournament games (1379 plies); replay data is included under tests/fixtures. Simulator-only SHOGI_QA_SAVED_GAME can inject a saved-game fixture and is excluded from device builds.

Build 8: separate the current game and manual record, migrate the recoverable legacy snapshot, and preview manual records without replacing the live game. Full scrollable Japanese move records, explicit two-player turns, state-aware home and result controls, and return-to-origin match setup.

Build 9: Japanese, English, Simplified Chinese, Traditional Chinese and Korean UI, in-game language override, system language fallback, and localized move records. Piece faces retain traditional shogi markings.
