Skip to content

feat: run local games through the CLI and SQLite server - #12

Merged
nosam1998 merged 2 commits into
mainfrom
feat/local-server
Sep 30, 2026
Merged

nosam1998 merged 2 commits into
mainfrom
feat/local-server

Conversation

@nosam1998

@nosam1998 nosam1998 commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Run gfa serve --sqlite ./gfa.sqlite --port 8080 to play Tic-Tac-Toe and Connect Four through the local REST API. The host wires the game registry, match service, SQLite adapter, OS-backed IDs/seeds, and graceful shutdown. Configuration stays in the application crates; adapters keep their dependency boundaries.

Depends on #11. This is the PRD's single-user local mode, with a loopback listener and no agent/seat authentication. docs/local-play.md includes working curl examples and the currently supported endpoints.

Validation: all GitHub Actions checks pass at 21c18f018b5f19428f46feb862adf0656a4fc360, including 38 Rust tests, fmt, clippy, dependency and SQLx schema checks, cargo-deny, core compatibility, web checks, and benchmarks. Three integration tests cover real games through HTTP, replay, persisted retries after restart, invalid moves, racing requests, and spectator views. Two CLI parsing tests and a real subprocess/HTTP/SQLite restart smoke test also pass.

@nosam1998
nosam1998 marked this pull request as ready for review September 30, 2026 04:37
@nosam1998
nosam1998 changed the base branch from feat/local-match-api to main September 30, 2026 04:46
@nosam1998
nosam1998 merged commit d64d463 into main Sep 30, 2026
6 checks passed
@nosam1998
nosam1998 deleted the feat/local-server branch September 30, 2026 08:27
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