Add spin session functionality and update game mechanics

- Introduced a new `spin_sessions` table to track user spin activities.
- Updated the API to include a new endpoint for spinning games, allowing users to place bets and specify spin counts.
- Enhanced game information structure and added validation for bets and spin counts.
- Implemented the `Forest Fortune` slot game mechanics, including payline evaluation and scatter functionality.
- Updated dependencies in `pyproject.toml` for development and added `httpx` for HTTP requests.
- Added unit tests for the new slot mechanics and API endpoints to ensure functionality and reliability.
This commit is contained in:
Redsandy
2026-08-12 15:27:24 +03:00
parent c9f66f330e
commit 5125b52583
18 changed files with 1023 additions and 32 deletions

View File

@@ -28,6 +28,7 @@ API docs: http://127.0.0.1:8000/docs
- `GET /me`, `POST /me/agreement`
- `GET /wallet`, `POST /wallet/deposit` (amounts: 100 / 500 / 1000)
- `GET /games`, `GET /games/{slug}`
- `POST /games/{slug}/spin` — bet + spin_count (1…1000); Forest Fortune is playable
No withdrawal endpoints by design.