How redward42/this-or-that works
This is a React “This or That” quiz game for an ACM event. Players choose a mode on the home screen, answer a question in that mode, receive correctness feedback and a sound, then return home. The game data covers six modes, including visual and video prompts. The sampled source shows the main navigation and answer flow; Wheel is implemented but its integration is not shown, so it is represented as a standalone UI component.
Main entry points: Game.jsx Question and Answer · App.jsx View Navigation · Home.jsx Mode Selection · data.js Mode and Question Data
Components 8
Application
- React Entry
src/main.jsx - View Navigation
src/App.jsx
Gameplay
- Mode Selection
src/Home.jsx - Question and Answer
src/Game.jsx
Game Content
- Mode and Question Data
src/data.js - Answer Sounds
src/sounds.js
UI Components
- Spin Wheel
src/Wheel.jsx
Other components
- Player
Connections 11
- React Entry → View Navigation: renders
src/main.jsx - View Navigation → Mode Selection: renders
src/App.jsx - View Navigation → Question and Answer: renders
src/App.jsx - Mode Selection → Mode and Question Data: reads modes
src/Home.jsx - Player → Mode Selection: chooses mode
src/Home.jsx - Mode Selection → View Navigation: selects mode
src/Home.jsx - Question and Answer → Mode and Question Data: reads prompts
src/Game.jsx - Player → Question and Answer: answers prompt
src/Game.jsx - Question and Answer → Answer Sounds: plays feedback
src/Game.jsx - Question and Answer → View Navigation: returns home
src/Game.jsx - Player → Spin Wheel: spins wheel
src/Wheel.jsx