formation-chess-web-0.2.0 is not a library.
formation-chess-web
A local web UI for Formation Chess (阵棋), built with Axum and vanilla JavaScript. No build tools, no framework — Rust serving a static frontend embedded in the binary.
Quick start
From crates.io:
From source:
Opens the browser automatically at an available local port. To specify a port:
API endpoints
| Method | Path | Description |
|---|---|---|
GET |
/ |
Web UI |
GET |
/api/state |
Full game state |
POST |
/api/action |
Submit an action |
POST |
/api/hints |
Legal moves or white placements |
POST |
/api/new |
Create a game from config |
GET |
/api/rules |
Chinese rules text |
All request/response bodies are JSON. Coordinates are 0-based [x, y]. Enum values are serialised in English ("Red", "BlackWin", etc.).