Coder Social home page Coder Social logo

guess-my-number's Introduction

Guess-My-Number Game :

Welcome to the Guessing Game repository! This is a simple game where a random number between 1 and 20 is generated, and you are challenged to guess it correctly. image

Game Rules :

☑️The game will automatically generate a random number between 1 and 20.
☑️You will be prompted to enter your guess.
☑️Type in a number between 1 and 20 and press Enter.
☑️The game will let you know if your guess was too high, too low, or correct.
☑️Continue guessing until you guess the correct number.
☑️Once you guess the correct number, the game will display a success message along with the number of attempts you took.
🚀 Enjoy playing the game multiple times!

Example

Here's an example of the game's interaction:

Welcome to the Guessing Game!

Guess a number between 1 and 20: 10
Too low! Guess a bigger number.

Guess a number between 1 and 20: 18
Too high! Guess a smaller number.

Guess a number between 1 and 20: 15
Too high! Guess a smaller number.

Guess a number between 1 and 20: 12
Congratulations! You guessed the correct number and the highest score is the (20 - number of attempts).

Contribution

If you want to contribute to this project, feel free to submit a pull request. Any improvements or new features are highly appreciated!

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the license terms.

guess-my-number's People

Contributors

nilanchalapanda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.