How gautam7991679867/rps-rock-paper-scissors-project works
This is a browser-based Rock–Paper–Scissors game controlled by hand gestures. The player starts a round, shows a gesture to the camera, and the app recognizes it, chooses a robot gesture, determines the winner, updates scores, and begins another round. The graph separates camera setup, gesture recognition, game control, and presentation. Source excerpts show the main calls; the README confirms the game’s purpose. The camera and model libraries are external dependencies, not repository subsystems.
Main entry points: index.js Game controller · Prediction.js Gesture prediction · UI.js Game UI · CameraConfig.js Camera settings
Components 11
Game flow
- Game controller
src/index.js - Camera settings
src/js/CameraConfig.js
Gesture recognition
- Gesture prediction
src/js/Prediction.js - Gesture definitions
src/js/Gestures.js - Warm-up image
src/js/SampleImage.js
Game presentation
- Game UI
src/js/UI.js - Game styles
src/styles/index.scss
Other components
- Player
- Browser camera
- Handpose model library
- Fingerpose library
Connections 10
- Player → Game controller: starts rounds
src/index.js - Game controller → Game UI: controls display
src/index.js - Game controller → Gesture prediction: requests predictions
src/index.js - Game controller → Camera settings: uses settings
src/index.js - Game controller → Game styles: imports styles
src/index.js - Game UI → Browser camera: requests video
src/js/UI.js - Gesture prediction → Handpose model library: estimates hands
src/js/Prediction.js - Gesture prediction → Fingerpose library: estimates gestures
src/js/Prediction.js - Gesture prediction → Gesture definitions: uses definitions
src/js/Prediction.js - Gesture prediction → Warm-up image: warms model
src/js/Prediction.js