# Astra's player CPU review

**PASS for the player-facing CPU and its table integration.** This is a credible improvement to playing the illustrated 105-card duel against the computer: it recognizes useful combinations, responds to visible threats, offers understandable challenge levels, and lets the player pause to inspect the table. It does not establish human enjoyment, expert strength, or measured difficulty win rates.

This is a narrow continuation of the [previous board review](../board-review.json). That record and its evidence remain unchanged. The new [CPU review record](../player-cpu-review.json) binds the changed controller, markup, CPU module, worker/client, styles, tests, this document, and current evidence. Archived copies of the previous `play.js` and `play.html` preserve their original reviewed hashes. Existing art, audio, drag, and animation findings are inherited as historical evidence; I have not performed another comprehensive review of them. The frozen Core34 mechanics acceptance is a separate experimental result and is not changed by this review.

Learning considers immediate legal outcomes and takes available immediate wins. Standard additionally searches bounded two-action combinations and visible enemy threats. Challenging considers more sequencing candidates and a wider public reply beam. These levels change planning, not card rules, draws, or access to private information. Learning is a simpler opponent rather than an opponent instructed to throw obvious wins. Challenging is not proven stronger in every position or for every deck.

The deck approaches are legible without pretending to be independent personality models. Pressure and Breakthrough favor hero damage, Control favors a lasting board, and Last Breath receives some resource weighting. Formation and Injury largely derive their behavior from actual power changes in the rules and the sequencing search; their generic valuation is otherwise shared with Balanced. The tests demonstrate third-body Formation and self-injury combinations. These descriptions are fair summaries of deck tendencies, not promises of distinct scripted personalities or expert archetype play.

The privacy boundary is sound for the reviewed game. The projection reads the computer's own hand, public units/discards, and public counts. It does not read the opponent's hand identities, either deck's hidden identities or order, hidden card UIDs, shuffle state, or the opponent's recipe. Sanitization happens before transfer to the worker and again inside the CPU. Unknown draws have generic resource value but cannot be played in forecasts. Tests use throwing private-property getters and hidden permutations, rather than relying only on code comments.

Independent review found and corrected a material problem: unknown forecast draws originally received no value, so all three levels passed with only Insight in hand despite available energy and an empty board. The final code values the resulting hand size generically, capped at the eight-card hand limit. The new regression verifies drawing in that valid position at all three levels, preserves the public projection result, prevents playing unknown placeholders, and rejects drawing into lethal empty-deck damage. This improves ordinary resource play without predicting the next card.

The [15 focused checks](../player-cpu-evidence/tactics.json) cover immediate wins, buff/Guard-removal/Formation/injury two-action wins, Breakthrough and Last Breath resolution, visible lethal through a damaged Guard, public fatigue, dangerous death rewards, private-information isolation, custom-deck approach selection, state immutability, save round trips, and draw handling. Small variation occurs only among similarly valued choices with the same bounded safety classification. Recognized immediate and searched two-action wins return before variation. This prevents arbitrary variation from deliberately discarding those recognized wins; it is not proof that every possible winning line is found.

The planning limits remain important. Standard and Challenging use bounded candidate sets and short searches, with reply searches limited to public attacks and abilities. They do not solve full turns, predict hidden enemy tactics, or prove that a position is safe merely because no lethal was found. Soft time and preview limits apply after initial legal-root previews, so there is no hard worst-case timing guarantee. The 33 measured samples have a 0.12 ms median and 29.35 ms maximum in the test environment. They are practical responsiveness evidence, not a broad hardware benchmark.

Search runs in a module worker, preserving the table's existing action staging. The controller checks match session, state identity, engine, selected difficulty, visibility, and open dialogs before committing a result. Changing matches cancels the worker; stale results cannot be applied to a new match. Dialog inspection pauses actions and closing resumes them. Challenge preference is stored separately from the actual match state, so changing it does not rewrite cards, health, or turn state. Returning to the lobby refreshes the displayed opponent approach.

The [11 desktop, emulated-touch, and route-compatibility browser checks](../player-cpu-evidence/browser.json) exercise the difficulty controls, deck descriptions, preference reload, settings synchronization, exact valid match preservation, modal pause/resume, and actual worker commands through the reducer. I inspected the desktop and mobile settings captures: the added controls are readable and fit the existing presentation. The [completed UI match](../player-cpu-evidence/match.json) records 22 human actions, 19 turns, 107 events, a CPU win, exact valid save/reload, and no page errors. The [recipe smoke check](../player-cpu-evidence/recipe-smoke.json) completes 16 matches covering all eight recommended recipes at Standard and Challenging, with legal commands, valid states, and exact final saves. Those matches establish integration and termination coverage, not balance or entertainment value.

I approve this bounded improvement for the playable table. The next useful evidence is people playing it: whether the challenge labels match their experience, whether the opponent's combinations are readable, and whether they want another game. Physical phones, broad browser/hardware performance, speaker listening, and human fun were not independently established here. No further expansion of the CPU harness is required by the reviewed findings.
