/guess-the-number

An interesting number guessing game created with vanilla-JS.

Primary LanguageJavaScript

🤔 Guess the number 🤔

MIT License

Project Description 📑

  • 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.

Tech Stack 💻

  • Vanilla Javascript
  • HTML5
  • CSS3

Screenshots 📸

level1 Screenshot level2 Screenshot level3 Screenshot

Optimizations 📊

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.

Run Locally 🧑‍💻

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

Contributing 🤝

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b issue101/features)
  3. Commit your Changes (git commit -m 'fixed some issues/added some features)
  4. Push to the Branch (git push origin issue101/featues101)
  5. Open a Pull Request

Reference 🙏

License ✅

MIT

Authors 👨‍💻