maick87 / number-guesser

This Python code implements a number guessing game where the player has 5 attempts to guess a randomly generated number between 1 and 100. It provides feedback on each guess and allows the player to play again if desired.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Number Guessing Game

This Python script implements a simple number guessing game. The player has 5 attempts to guess a randomly generated number between 1 and 100. After each guess, the player receives feedback on whether their guess is too high or too low. If the player guesses correctly within the allowed attempts, they win; otherwise, they lose. The game allows the player to play again if desired.

Instructions

  1. Run the script in a Python environment.
  2. Follow the prompts to input your guesses.
  3. Receive feedback on each guess.
  4. Win by guessing the correct number within 5 attempts.
  5. Choose to play again or exit the game.

Requirements

  • Python 3.x

Usage

  1. Clone or download the repository.
  2. Navigate to the directory containing the script.
  3. Run the script using the command py number-guesser.py ou click run in your IDE

Contributors

Feel free to contribute by suggesting improvements or adding new features!

About

This Python code implements a number guessing game where the player has 5 attempts to guess a randomly generated number between 1 and 100. It provides feedback on each guess and allows the player to play again if desired.


Languages

Language:Python 100.0%