Skip to content

Rank-up share card and Elo tiers - #351

Merged
ASCoding11 merged 1 commit into
mainfrom
claude/rank-up-share-card
Nov 27, 2026
Merged

ASCoding11 merged 1 commit into
mainfrom
claude/rank-up-share-card

Conversation

@ASCoding11

Copy link
Copy Markdown
Owner
  • New: rank-up share card after rated online matches (all 14 games that use elo.js). When a match takes you to a new Elo tier, or into a game's top 100 / top 10 / top 3 / Back Room: parties (group up, then join a game room together) #1, a panel pops up with Share achievement, Save image and Copy link.
  • Elo tiers added: Bronze, Silver 1100, Gold 1250, Platinum 1400, Diamond 1600, Champion 1800.
  • The shared picture (1080 × 1350) shows the game, the tier or place, the rating and change, the player's name and "Play at ascoding11.com/".
  • Files: new e63334287a3deaa3/flex.js (loaded by elo.js only after a rated match); elo.js (one hook); index.html and e63334287a3deaa3/m/index.html (game frames now allow web-share so the share sheet works inside them); README; What's new entry.
  • Risk: low. Reads rooms/elo-<game>/players once after a match (no new writes, no rules change). Every call swallows its own errors, so it can't break a game. Shell Crackers keeps its own rating and doesn't get the card yet.

Generated by Claude Code

- **New: rank-up share card** after rated online matches (all 14 games that use `elo.js`). When a match takes you to a new Elo tier, or into a game's top 100 / top 10 / top 3 / #1, a panel pops up with **Share achievement**, **Save image** and **Copy link**.
- **Elo tiers added:** Bronze, Silver 1100, Gold 1250, Platinum 1400, Diamond 1600, Champion 1800.
- The shared picture (1080 × 1350) shows the game, the tier or place, the rating and change, the player's name and "Play at ascoding11.com/<game>".
- Files: new `e63334287a3deaa3/flex.js` (loaded by `elo.js` only after a rated match); `elo.js` (one hook); `index.html` and `e63334287a3deaa3/m/index.html` (game frames now allow `web-share` so the share sheet works inside them); README; What's new entry.
- Risk: low. Reads `rooms/elo-<game>/players` once after a match (no new writes, no rules change). Every call swallows its own errors, so it can't break a game. Shell Crackers keeps its own rating and doesn't get the card yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ZY4GY6KEVGmw5xYZiPbvp
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ascoding11 ready!

Name Link
🔨 Latest commit add268b
🔍 Latest deploy log https://app.netlify.com/projects/ascoding11/deploys/6b0967bba4c206bb8aa96d44
😎 Deploy Preview https://deploy-preview-351--ascoding11.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ASCoding11
ASCoding11 merged commit 3a4ac24 into main Nov 27, 2026
5 of 7 checks passed
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cosmic-dasik-e73c56 ready!

Name Link
🔨 Latest commit add268b
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-dasik-e73c56/deploys/6b0967bba6f5af6e04404ad7
😎 Deploy Preview https://deploy-preview-351--cosmic-dasik-e73c56.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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