Skip to content

feat(gamification): add Elo rating calculator for accountability circles - #648

Merged
TheVicky1 merged 1 commit into
TheVicky1:mainfrom
akshatXD-hash:feat/gamification-add-elo-rating-score-calculator-for-competitive-accountability-circles
Oct 21, 2026
Merged

TheVicky1 merged 1 commit into
TheVicky1:mainfrom
akshatXD-hash:feat/gamification-add-elo-rating-score-calculator-for-competitive-accountability-circles

Conversation

@akshatXD-hash

Copy link
Copy Markdown
Contributor

Closes #640

Adds the Elo rating calculator for competitive accountability circles, including:

  • Expected scores rounded to four decimal places.
  • Dynamic K-factors for placement matches and elite members.
  • Optional +2 bonus for winners with a pre-match streak of at least three.
  • Five rank tiers and a minimum rating floor of 100.
  • Typed interfaces and JSDoc documentation.

Adds 26 Vitest tests and integrates them into the existing npm test runner.

Validation:

  • All 96 test suites passed.
  • Elo module achieved 100% branch, statement, function, and line coverage.
  • Typecheck, lint, and secret scan passed.
  • No runtime dependencies added.

@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@akshatXD-hash is attempting to deploy a commit to the Vicky's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

👋 Welcome to PACT OS, @akshatXD-hash! 🚀

Thank you for taking the time to open your first pull request on PACT! We are thrilled to have you here in our open-source community.


🔍 What Happens Next?

  1. Automated Verification: Our Continuous Integration (CI) workflow is currently verifying:
    • 🔒 Zero-Secret Security Scan
    • 🔗 Markdown Link Integrity
    • 🧹 ESLint Code Quality
    • 🏷️ TypeScript Strict Typecheck
    • 🧪 56-Suite Automated Domain & Security Test Matrix
    • 🏗️ Next.js Production Build
  2. Maintainer Review: A maintainer (@TheVicky1) will review your pull request shortly.
  3. Friendly Iteration: If any adjustments or feedback are needed, we will provide clear, actionable suggestions to help get your PR merged smoothly.

📚 Helpful Quick Links

Thank you for helping make PACT better! Plan. Track. Improve. Repeat. 🏛️✨

@TheVicky1
TheVicky1 merged commit bf5cfc7 into TheVicky1:main Oct 21, 2026
3 of 4 checks passed
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.

[Gamification] Add Elo Rating Score Calculator for Competitive Accountability Circles in src/lib/gamification/elo-rating.ts

2 participants