How kanedayo/modern-jankenman works
This is a browser-based rock-paper-scissors game with rhythm cues, tie rounds, escalating win rewards, and medal collection. The player starts a game and chooses a hand; the game resolves the result, repeats ties, and offers a double-up choice after wins until the player collects or loses. Medal totals persist in browser storage, and sound effects accompany play. The workflow is visible in script.js; index.html and the sound directory are identified by the tree, but their contents were not provided.
Main entry points: script.js Game controller · index.html Game interface · sounds Sound assets
Components 9
Game flow
- Game controller
script.js - Hand resolution
script.js - Reward decisions
script.js
Player interface
- Game interface
index.html
Persistence and audio
- Medal storage
script.js - Browser storage
- Sound playback
script.js - Sound assets
assets/sounds
Other components
- Player
Connections 12
- Player → Game interface: plays through
- Game interface → Game controller: sends choices
script.js - Game controller → Game interface: updates display
script.js - Game controller → Hand resolution: resolves hand
script.js - Hand resolution → Reward decisions: passes outcome
script.js - Game controller → Reward decisions: starts round
script.js - Reward decisions → Game interface: shows decision
script.js - Reward decisions → Medal storage: collects medals
script.js - Medal storage → Browser storage: reads and writes
script.js - Game controller → Sound playback: plays cues
script.js - Reward decisions → Sound playback: plays outcomes
script.js - Sound playback → Sound assets: loads audio
script.js