Giter Site home page Giter Site logo

number-guessing-game's Introduction

Number-Guessing-Game!

This is a simple console-based number guessing game🤔 implemented in Python. The game generates a random number between a specified range and challenges the player to guess the correct number within a limited number of attempts.

Features:

  • Randomly generates a number within a user-defined range.

  • Allows the player to specify the number of attempts to guess the correct number.

  • Provides hints (higher/lower) to guide the player towards the correct answer.

  • Informs the player whether their guess is correct or not after each attempt.

  • Displays a victory message and the number of attempts taken upon successful guessing.

  • Handles invalid inputs gracefully and prompts for re-entry.

    guess

How to Play:

1.Clone the repository to your local machine.
2.Open the Python file containing the game in your preferred Python environment
3.Run the script to start the game.
4.Follow the on-screen instructions to play the game, guessing the randomly generated number.

Requirements:

  • Python 3.x

Usage:

```bash
python number_guessing_game.py ```

-- Enjoy the thrill of guessing the number and challenge yourself to beat your best score! Feel free to contribute improvements and additional features to enhance the game further

number-guessing-game's People

Contributors

izhangit avatar

Stargazers

 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.