A new hand is now dealt as at a real table: packets of 3, 3 and then
the 2 talon cards fly from the dealer to each player in turn, starting
after the dealer, and cards appear in the hand and the fans only as
they arrive (DealPlan, DealOverlay). The deal takes about 1.6 s, over
before the first bot calls, and nobody is shown to act meanwhile. Its
sound plays with each round, and "your turn" only once all the cards
are out.
A card that may be played can also be dragged onto the table: held,
it straightens and comes up a little; let go above the hand and it is
played, landing from where it was dropped and shrinking to its size on
the table; let go lower and it goes back into the hand. A click still
plays it too.
Hand cards are now keyed at the loop level, so a card keeps its state
when the hand is sorted again as more cards arrive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card recording is very quiet with rumble all through it, and its
landing turns into a harsh crack once brought up to the others'
loudness. The slide is clean above 1 kHz, so the recording is now
filtered below 900 Hz and the slide used instead, as chosen by ear:
- a card played: the slide
- the deal: three slides, each a little faster or slower
- a trick gathered: the slide played slower and deeper
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sounds now come from the recordings in audio_assets/, cut and
cleaned up by tools/make_sounds.py into one WAV per sound (shared
composeResources/files/sounds), loaded by both apps instead of being
synthesised at runtime:
- your turn: the nudge ring; to call trump: the nudge twice
- 10 seconds left: the reminder ring; someone joins: its first strikes
- the last seconds: the clock's tick
- a card played, the deal, a trick gathered: the card recording
- won, lost: the happy and the sad melody
- trump called, the hand over: still synthesised (no recording yet)
Each is trimmed so it starts at once, faded out instead of cut, the
card recording's rumble filtered out, and every sound set to the same
loudness, its loudest 100 ms at -20 LUFS (K-weighted, BS.1770), about
6 dB below the old chimes, with peaks under -4 dBFS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The desktop home screen showed the 53-module code at 132 dp, about two
blurred pixels per module. It now takes up to 200 dp when the window is
tall enough, and every QR code draws its modules in whole pixels so the
edges stay sharp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a wide landscape window (at least 900 x 560 dp, 16:9 and similar) the web
app no longer shows the phone column with black bars:
- Table: an oval card table with a wooden rail across the window, players
around it, larger cards (sized to the window, never above the artwork's
width), and a side panel with the score, trump, the hand so far, the last
trick and the score sheet always in view.
- Home: the logo as a hero on the left, the menu on a panel to the right,
with the Android QR code in the browser.
- Online lobby and room: two columns.
- Training: a centred column.
- With a mouse, playable cards rise further under the pointer, and
buttons, suit tiles and free seats get a hand cursor and a soft hover.
Phones, narrow windows and the Android app keep the existing layout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>