diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-01 20:11:41 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-01 20:11:41 +0100 |
| commit | e920b20fafe375eec15b24eb8cde4b1455dd01af (patch) | |
| tree | 308d2f7999177a753528779f6ec7926f3fa50818 /AGENTS.md | |
| parent | v4.1.0: add the egui workspace member and the roulette style spike (diff) | |
| download | zagan-bet-e920b20fafe375eec15b24eb8cde4b1455dd01af.tar.gz zagan-bet-e920b20fafe375eec15b24eb8cde4b1455dd01af.zip | |
v4.1.1: pointer-first betting and visible payouts in the GUI
The felt snaps the hover to the shared fine lattice: inner half of a cell is a straight, an edge a split, a crossing a corner. A translucent chip previews the target and the covered cells tint. Left click adds the selected chip, right or middle click takes one back through the new Bets::reduce; C or CLEAR empties the slip, and SPIN stays disabled with no chips.
The result now pays out: the wheel leaves the winning pocket under the pointer, the winning cell and pocket get a gold outline, and the sidebar reports the amount returned and the net for the round (NO WIN on a loss). Placing a chip after a result starts the next round without losing the wheel position.
The column row now spans the full width like a real table instead of hugging the left edge. Adds tests for lattice snapping, target naming and taking chips back.
Diffstat (limited to '')
| -rw-r--r-- | AGENTS.md | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -73,6 +73,10 @@ | |||
| 73 | look; keep a style module and a reference screen. The palette is derived | 73 | look; keep a style module and a reference screen. The palette is derived |
| 74 | from the terminal's ANSI colours, and felt green is only ever the roulette | 74 | from the terminal's ANSI colours, and felt green is only ever the roulette |
| 75 | table. | 75 | table. |
| 76 | - The GUI felt is pointer-first: the hover snaps to the shared fine lattice | ||
| 77 | (cell centre, edge, crossing), left click adds the chip and right or middle | ||
| 78 | click takes one back. The terminal keeps its arrow-key cursor; the GUI does | ||
| 79 | not paint it. | ||
| 76 | 80 | ||
| 77 | ## Client TUI | 81 | ## Client TUI |
| 78 | - `render_lines()` and `render()` must agree. If `render()` uses `\r\n`, | 82 | - `render_lines()` and `render()` must agree. If `render()` uses `\r\n`, |
