7f82251d868056b9a65dd7167d37cd0ca523c407
Build: - :engine now uses com.android.kotlin.multiplatform.library (AGP 9.2.1), the modern KMP Android integration, rather than plain androidTarget(). Produces engine.aar alongside the JVM target; compileAndroidMain verified. - Version catalog added; SDK levels match the other JSJ apps (compileSdk 37, minSdk 26). Engine: - PlayerAgent.act() and Table.playHand() are now suspend, so a human player can wait for input without blocking a thread. Bots are unaffected; the simulator wraps in runBlocking. - TableSnapshot/SeatSnapshot published after the deal, before and after every action, and at the finish. Immutable, aliasing no live Seat state, giving animation, hand history, saving, and replay one boundary to work against. - Snapshots carry the whole truth; maskedFor(viewer) is an explicit step that hides hole cards the viewer is not entitled to. Showdown reveals contenders; folded hands never are. - Terminal snapshots report the contested pot rather than 0. settle() zeroes contributions when awarding, so the naive value was empty at exactly the moment the UI needs to show what was won. Caught by a new test. - HumanAgent suspends on a CompletableDeferred and clears its pending state in a finally block, so cancelling an abandoned hand releases the wait instead of stranding it. Re-usable afterwards; a stale submit returns false. Tests: 37 -> 45. Chips still conserved, skill gradient still monotonic. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
Kotlin
89.4%
HTML
10.3%
Shell
0.3%