5 Commits
Author SHA1 Message Date
TMCandClaude Opus 5.5 0d70bf4d5e Engine: test that over-cutting and going higher apply over the partner too
Release / build (push) Successful in 4m46s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:27:50 +01:00
TMCandClaude Opus 5.5 fb37180c89 Sounds, an online turn timer, and the suits' usual names
Release / build (push) Successful in 4m31s
Sounds: your turn to play or to call, 10 seconds left and the last five
ticking (online), cards, the deal, a trick gathered, trump called, the
end of a hand, winning or losing, and someone sitting down in your room.
They are synthesised in code (struck bells, filtered noise), so there
are no audio files to license, and played through SoundPool on Android
and Web Audio in the browser. The cues follow the game state outside of
composition, so a browser tab in the background still chimes when it is
your turn. A speaker button on the table and a switch in the settings
turn them off.

Online, every move and call now has 30 seconds; then the server's bot
makes it. Two in a row and the bot plays for that player without
waiting until they tap "Vraćam se" (or, with nobody else at the table,
the game waits for them). After a hand the next one is dealt within 30
seconds. The time shows as a ring round the portrait of whoever is to
play, on your own plate while you play and under the trump offer while
you call. Tables carry the time left and the autoplay state as new
optional fields, so older clients still work.

The suits are now called as players call the Hungarian cards: Herc,
Bundeva, Zelje, Žir ("zove bundevu").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:19:10 +01:00
TMCandClaude Opus 5.5 767857d0ff Web app and online play: shared Compose UI, Ktor game server, Docker image
Release / build (push) Failing after 1m29s
- shared: the whole UI moves to Compose Multiplatform (Android + Kotlin/Wasm). Platform pieces
  (card images, storage, links, back button) come in through a Platform interface; fonts, logo and
  suit icons are compose resources; images are reduced by halving so they stay sharp everywhere.
- web: the browser app (bela.mariosem.es), with 1x card faces, localStorage and room links (?soba=KOD).
- Online play: lobby (name, open a room, join by code), waiting room with seats, then the usual
  table. The server runs every game with the engine and sends each player only their own view;
  bots fill empty seats; same pacing as the local game. Reconnect with a saved token (also after
  closing the app or reloading the page), 10 s grace before a bot plays for an absent player,
  heartbeat so dead connections are noticed.
- server: Ktor (WebSocket /ws, /health, serves the web app with pre-compressed files). Tests cover
  a whole two-player game, resume and leaving.
- Dockerfile (one image: web + server, tests run in the build), docker-compose.yml and a Gitea
  Actions workflow like Keep's (build, Trivy scan, push msemes/bela:<sha> and :latest).
- Android talks to the server with Ktor CIO; the update section stays Android-only. The QR code is
  precomputed (QrMatrix) and checked against ZXing in a unit test.
- -PbelaNoAndroid=true builds without the Android SDK; -PbelaDownloadNode=false reuses the local Node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:23:34 +01:00
TMCandClaude Opus 5.5 a4bfb38be7 engine: Kotlin Multiplatform (JVM + Wasm), serializable wire types, TableView per seat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:32:30 +01:00
TMCandClaude Opus 5.5 90acbcb4e6 Bela v0: local game against bots, counting training, settings with self-update
- engine: Croatian Bela rules (deal, trump call, declarations, play rules, scoring),
  heuristic bot, counting drill; unit tests and a 1000-game simulation
- app: Jetpack Compose table with partner and two bot opponents, Hungarian deck,
  card-counting training, settings with in-app update and a QR code for sharing
- tools: card import/render/upscale scripts and the launcher icon generator

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 20:40:57 +01:00