How mockingbird-prog/javascriptgames works
This is a small browser-based rock-paper-scissors game. A player click starts the round: the app records the selected move, generates a random computer move, evaluates the outcome, and updates the page. The only source excerpt is app.js; the HTML and CSS are present in the tree but their contents were not sampled, so the UI relationships shown here are limited to DOM interactions visible in app.js.
Main entry points: app.js Round handler · index.html Game page
Components 5
Game runtime
- Game page
index.html - Round handler
app.js - Computer move
app.js - Outcome rules
app.js
Other components
- Player
Connections 6
- Player → Round handler: clicks move
app.js - Round handler → Game page: shows player move
app.js - Round handler → Computer move: generates move
app.js - Computer move → Game page: shows computer move
app.js - Round handler → Outcome rules: evaluates round
app.js - Outcome rules → Game page: shows result
app.js