How kotechamohit/stone-paper-scissor works
This is a small browser-based Rock Paper Scissors game. The player clicks a choice, the event handler passes it to the round logic, which generates a computer choice and determines a win, loss, or draw. Win/loss results update the corresponding score and message; draws update the message without changing scores. The README documents the HTML/CSS interface and color-coded feedback, but those files were not sampled, so their detailed wiring is not shown.
Main entry points: app.js Play Round · index.html Choice Buttons · style.css Page Styling
Components 8
Round Logic
- Click Handler
Stone Paper Scissor/app.js - Play Round
Stone Paper Scissor/app.js - Computer Choice
Stone Paper Scissor/app.js - Resolve Outcome
Stone Paper Scissor/app.js
Game Interface
- Choice Buttons
Stone Paper Scissor/index.html - Score and Feedback
Stone Paper Scissor/app.js - Page Styling
Stone Paper Scissor/style.css
Other components
- Player
Connections 7
- Player → Choice Buttons: selects choice
README.md - Choice Buttons → Click Handler: click event
README.md - Click Handler → Play Round: starts round
Stone Paper Scissor/app.js - Play Round → Computer Choice: generates choice
Stone Paper Scissor/app.js - Play Round → Resolve Outcome: compares choices
Stone Paper Scissor/app.js - Resolve Outcome → Score and Feedback: updates result
Stone Paper Scissor/app.js - Page Styling → Score and Feedback: colors feedback
README.md