Skip to content

New algo summer 2026 ???? - #160

Merged
djonn merged 8 commits into
mainfrom
feat/new-algo-summer-2026
May 22, 2026
Merged

djonn merged 8 commits into
mainfrom
feat/new-algo-summer-2026

Conversation

@djonn

@djonn djonn commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Det er 100% vibet, men synes algoritmen er sjov nok.
Jeg har ikke reviewet det selv endnu, kan vi gøre under turneringen 😉
Jeg har lige hurtigt kørt det, men ikke testet særligt meget

how works

Mood Ring tracks each player's heat — a momentum score that reflects recent form, not lifetime skill.
Every match, heat is updated in three steps:

  1. Decay — heat is multiplied by 0.9, so it fades over time even if you keep playing.
  2. Result — wins add +10, losses subtract −8, draws change nothing beyond decay.
  3. Blowout bonus — wins by more than 100 points add an extra +5; otherwise score difference is ignored.

Heat is floored at 0 and used for both ranking and display. The leaderboard shows a mood label instead of the raw number:

Heat Mood
0–19 Cold
20–49 Mid
50–79 On Fire
80+ Cooking

So the system rewards win streaks and punishes losing runs, with a small nod to dominant victories — but a few bad losses or time away will cool you off quickly.

@djonn
djonn requested a review from Faustvii May 22, 2026 13:19
@djonn
djonn force-pushed the feat/new-algo-summer-2026 branch from 8971baa to 5aa9f9e Compare May 22, 2026 13:35
@djonn
djonn force-pushed the feat/new-algo-summer-2026 branch from 5aa9f9e to 8830d11 Compare May 22, 2026 15:27
@djonn
djonn merged commit 735b4f8 into main May 22, 2026
4 checks passed
@djonn
djonn deleted the feat/new-algo-summer-2026 branch May 22, 2026 17:09

This branch was previously deployed

1 inactive deployment
preview — 1cb7979a Deployed May 22, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants