This project is a simple number guessing game created using HTML, CSS, and JavaScript. The game provides the player with 6 chances to guess the correct number and keeps track of previous guesses. Additionally, it offers a restart button once the player wins.
-
Clone the Repository:
git clone https://github.com/your-username/number-guessing-game.git
-
Open the Game:
Open the
index.html
file in your preferred web browser.
Use this link: https://thecodephilic-guy.github.io/number-game/
Game Rules:
- The game will generate a random number between 1 and 100.
- You have 6 chances to guess the correct number.
- Enter your guess in the input field and click the "Check" button.
- After each guess, the game will provide feedback if the actual number is higher or lower than your guess.
- The game will also display your previous guesses.
- Once you guess the correct number within 6 attempts, you win!
- Click the "Start New Game" button to restart the game.
- HTML: Structuring the webpage elements.
- CSS: Styling the user interface and design.
- JavaScript: Implementing game logic and functionality.
index.html
: Main HTML file containing the game structure.style.css
: CSS file for styling the game interface.script.js
: JavaScript file containing the game logic.
This project is licensed under the MIT License - see the LICENSE file for details.
- This project was created as a learning exercise.
- Inspired by various online tutorials and resources.