How samysierradv/juego-numero-secreto works
This is a small Spanish-language secret-number guessing game. A player enters a guess; the game compares it with a randomly selected number, displays whether the secret is higher or lower, and on a correct guess displays the attempt count and enables restarting. Restarting clears the input and resets game state. The source shows the game logic reading and updating page elements, but the HTML and event-handler wiring were not sampled, so those connections are not asserted.
Main entry points: app.js Game logic · index.html Game page
Components 5
Guessing game
- Game page
index.html - Game logic
app.js - Page styling
style.css
Other components
- Player
- Random number generator
Connections 2
- Game logic → Game page: reads and updates
- Game logic → Random number generator: generates secret