- This is a simple number guessing game that I created as my e-Litmus Internship task.
- We need to guess a number in a given range.
- In EASY level the secret number will be a NATURAL number between 1 - 25.
- In MEDIUM level the secret number will be an EVEN number between 1 - 50.
- In HARD level the secret number will be a PRIME number between 1 - 100.
- We have the 25 chances to guess the correct number.
- We'll win on guessing the correct number within given chances else we lose.
- If we score higher than before then it'll become high score(HighScore will reset tio zero on each level).
- If our average score of 5 game is greater then the minimum score then level will be automatically uppgraded.
- Vanilla Javascript
- HTML5
- CSS3
1. Refactors: Arranged and grouped all the variables, selectors, functions and event listeners together.
2. Performance improvement: 📈 Created functions for the repetitive code & specific tasks.
Clone the project
git clone https://github.com/Pranav108/guess-the-number
Go to the project directory
cd guess-the-number
Install live-server
npm install live-server
Start the server
live-server
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b issue101/features
) - Commit your Changes (
git commit -m 'fixed some issues/added some features
) - Push to the Branch (
git push origin issue101/featues101
) - Open a Pull Request