Skip to content

feat(game): add draw resign abort takeback offers (CV-165) - #13

Merged
Leo-Galli merged 1 commit into
mainfrom
feat/cv-165-offers
Nov 24, 2026
Merged

Leo-Galli merged 1 commit into
mainfrom
feat/cv-165-offers

Conversation

@Leo-Galli

Copy link
Copy Markdown
Contributor

Summary

  • Add PROTOCOL draw/takeback/resign/abort state machine (offer_draw, offer_takeback, respond_offer, resign, abort) with OfferState, OFFER_INVALID, ABORT_DENIED, and GameEnd reasons agreement / resign / abort.
  • Extend game event log with Offer/OfferResponse/Resign/Abort/Takeback; takeback restores FEN, clocks, and lag quotas; ADR-005 first-move abort windows (bullet 15s / blitz 20s / rapid+ 60s).
  • Tests in tests/offers.rs; README STATUS Offers Built.

Test plan

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (always-on; Redis-gated paths run in CI)
  • node scripts/verify-readme.mjs
  • CI verify green on this PR

State machine for OfferDraw/OfferTakeback/OfferResponse/Resign/Abort with PROTOCOL OfferState, OFFER_INVALID, ABORT_DENIED, and ADR-005 first-move abort windows. Takeback restores FEN, clocks, and lag quotas.
@Leo-Galli
Leo-Galli merged commit a9b4dd2 into main Nov 24, 2026
1 check passed
@Leo-Galli
Leo-Galli deleted the feat/cv-165-offers branch November 24, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant