Skip to content

This is a simple interactive web game where users try to guess a randomly generated number between 1 and 20. The game provides feedback on whether the guessed number is too high or too low and tracks the score.

Notifications You must be signed in to change notification settings

SerhVo/Guess-the-number-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Guess the Number Game

This is a simple interactive web game where users try to guess a randomly generated number between 1 and 20. The game provides feedback on whether the guessed number is too high or too low and tracks the score.

Features:

•	Random Number Generation: Generates a secret number that the player must guess.
•	Score Tracking: The score decreases with each guess, providing a challenge to guess the number within a limited number of attempts.
•	Dynamic Feedback: Displays messages indicating whether the guessed number is too high, too low, or correct.
•	Audio Effects: Plays sound effects for different actions, enhancing user experience.
•	Reset Functionality: Allows players to restart the game easily.

Technologies & Methods:

•	JavaScript (ES6+)
•	Utilizes functions to handle game logic and user interactions.
•	Employs event listeners to manage user inputs and game flow.
•	DOM Manipulation
•	Accesses and modifies HTML elements dynamically to reflect game state and user actions.
•	Audio API
•	Implements sound effects for a more engaging gameplay experience.
•	Responsive Design
•	Designed for user interaction through mouse events and input fields.

Setup:

1.	Clone the repository.
2.	Open the index.html file in a web browser.

Enjoy playing the “Guess the Number” game and challenge your friends to beat your score!

About

This is a simple interactive web game where users try to guess a randomly generated number between 1 and 20. The game provides feedback on whether the guessed number is too high or too low and tracks the score.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published