How meherjebali/alghaz works
Alghaz is a browser-based Arabic quiz game. A player starts or resets a round; the game selects a question and answer from the question bank, displays a masked answer and letter choices, accepts clicks or keyboard input, and updates lives and score. The main implementation also handles hints and audio feedback. The repository includes a second, similar game script; its relationship to the main page is not established by the excerpts, so it is shown as a separate implementation. The HTML wiring was not sampled.
Main entry points: index.js Round controller · data.js Question bank · index.html Game page · rsc Sound effects
Components 7
Gameplay
- Round controller
js/index.js - Alternate game script
js/index - Copie.js
Quiz content
- Question bank
data.js
Presentation
- Game page
index.html - Game styling
css/style.css - Sound effects
rsc
Other components
- Player
Connections 4
- Player → Round controller: plays
js/index.js - Round controller → Question bank: selects from
js/index.js - Round controller → Game page: updates interface
js/index.js - Round controller → Sound effects: triggers playback