Skip to content

Feat/rps computer card UI#471

Merged
steam-bell-92 merged 3 commits into
steam-bell-92:mainfrom
avzuha:feat/rps-computer-card-ui
May 20, 2026
Merged

Feat/rps computer card UI#471
steam-bell-92 merged 3 commits into
steam-bell-92:mainfrom
avzuha:feat/rps-computer-card-ui

Conversation

@avzuha
Copy link
Copy Markdown
Contributor

@avzuha avzuha commented May 19, 2026

Related issue: #409 and #407
What this does: Adds three dimmed cards on the computer's side mirroring the player's card UI. The bot's chosen card highlights with a green border after each round, making the computer's choice immediately clear without having to read the result text.
Changes made: web-app/js/projects/rock-paper-scissor.js

Added .computer-cards HTML with three non-clickable comp-cards
Added CSS for .comp-card and .comp-card.selected
Added card highlight logic in playRound()
Added stat reset to games played, wins, losses, current streak upon clicking "Reset Game"

Screenshot 2026-05-20 031823 Screenshot 2026-05-20 031837

Closes #409 and #407

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

@avzuha is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92 steam-bell-92 merged commit 5914c8a into steam-bell-92:main May 20, 2026
1 of 2 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 [Feature]: Show computer's choice using same cards in Rock Paper Scissors

2 participants