BGS lets the only human of a game against bots take back their last saved
move (protocol 0.10.0). The board toolbar's undo slot shows an "Undo my
move" control while BGS reports it available and the current turn has no
unsaved moves (those keep the in-turn undo); it stays hidden for spectators,
in analysis, during replays and in lessons. Clicking it asks BGS to undo,
which then sends the earlier state: going back in history discards the
local selection, bid drafts and confirmations.
The dev app mimics BGS's undo against its AI players. Also fixes the import
order that failed the prettier check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine (wrapper.spec.ts), simulating the platform (persist only what toSave
returns):
- mid-turn buffers are tentative (toSave undefined, nothing persisted) and
the full turn commits when it completes
- bare move objects are accepted as one-element buffers; empty buffers are
never saved
- undo-by-truncation: replaying a shortened buffer from the committed base
equals never having made the popped move (including undoing to empty with
no server call)
- scripted 2-player auction: sail-to-island commits immediately, a bid is a
single-move committed turn, the auctioneer's mid-turn loan stays tentative,
accept/decline commit and cannot be undone once control passes on
- the saved log length never shrinks across committed states
- moveAI always returns saveable states across a random 25-turn game;
dropPlayer results are committed
Viewer: replace the dead example unit test (missing HelloWorld component)
with a real Calculator test so vue-cli-service test:unit passes.