Pero Grubač

Sedmica

Scorecard for the card game Sedmica, for 2–4 players.

Sedmica: points for the current round for three players above the score table with four rounds and running totals

What it does

In every round of Sedmica the players’ points add up to 8 or 9, and the first player whose running total reaches the limit loses. Each player gets a card for the round’s points, and a live sum turns green when the round adds up; a round that doesn’t is refused. A player marked šuster is left out of that sum, scores 0 for the round, and their running total starts again from 0.

The table shows each round’s points with the running total beneath them. The limit is 51 by default, or any whole number from 11 up. When a total reaches it, a banner names the loser and round entry is locked; if several players cross it in the same round, the highest total loses, and equal totals share the loss. The last round can be undone, which also reopens a finished game. Finished games go into a history of the last 50, with games, losses and average final total per player.

The interface is in Bosnian/Serbian/Croatian. The app has no build step and no dependencies, keeps the game through a reload, and installs as an offline PWA.

Decisions and why

  • Scores are stored per round and the totals are recomputed from them, so undo and the šuster reset can never drift out of sync.
  • The rules are pure functions, so the end of the game is decided from the stored rounds and tested without a browser. That is also why undo can reopen a finished game.
  • History entries carry the game’s id, so a finished game is never stored twice, and undoing an ending takes it out of the history.
HomepageAboutsectionSystemssectionIndex of projectssectionBrowser appspageContactsectionIncident Alertsystem · case studyeMobilityHubsystem · case studyChat Roomsystem · case studyOnline Library Systemsystem · case studyRepoHealthlive app · case studyOpen RepoHealth app (opens in a new tab)live appGitHub Discord Bottool · case studyBookstore APIweb project · case studyFitForgemobile app · case studyAssetManagermobile app · case studyStore Managementdesktop app · case studyETF Oglasimobile app · case studyDevKitlive app · case studyOpen DevKit app (opens in a new tab)live appDev Timelinelive app · case studyOpen Dev Timeline app (opens in a new tab)live appGitHub Dashboardlive app · case studyOpen GitHub Dashboard app (opens in a new tab)live appStore Chain Managementdesktop app · case studySecure Repositorytool · case studyMinimal Blogweb project · case studyCatan Map Generatorlive app · case studyOpen Catan Map Generator app (opens in a new tab)live appMonte Carlo π · Pythonlive app · case studyOpen Monte Carlo π · Python app (opens in a new tab)live appBrick Breakerlive app · case studyOpen Brick Breaker app (opens in a new tab)live appArcane Keeplive app · case studyOpen Arcane Keep app (opens in a new tab)live appe-Mobility Rentaldesktop app · case studyCountdownlive app · case studyOpen Countdown app (opens in a new tab)live appANOVAdesktop app · case studyEcho Playerdesktop app · case studyMonte Carlo πdesktop app · case studyexcuse.exelive app · case studyOpen excuse.exe app (opens in a new tab)live appYamb Tablelive app · case studyOpen Yamb Table app (opens in a new tab)live appSedmicalive app · case studyOpen Sedmica app (opens in a new tab)live appLora Score Tablelive app · case studyOpen Lora Score Table app (opens in a new tab)live appSnake (Blavor)desktop app · case study
Copy emailpero.grubac00@gmail.com