This is a simple Python guessing game. The program selects a random number between 1 and 100, and the player's task is to guess that number within a limited number of attempts.
- The program will generate a random secret number between 1 and 100.
- The player has a maximum of 10 attempts to guess the secret number.
- Enter your guess when prompted.
- The program will provide hints, letting you know if the secret number is higher or lower than your guess.
- Keep guessing until you correctly guess the secret number or run out of attempts.
To run the game, you need to have Python installed on your computer.
- Clone the repository or download the Python script.
- Open your terminal or command prompt.
- Navigate to the folder containing the script.
- Run the script using the
python guessing_game.py
command.
Este es un juego de adivinanza simple en Python. El programa selecciona un número aleatorio entre 1 y 100, y la tarea del jugador es adivinar ese número en un número limitado de intentos.
- El programa generará un número secreto aleatorio entre 1 y 100.
- El jugador tiene un máximo de 10 intentos para adivinar el número secreto.
- Ingresa tu suposición cuando se te indique.
- El programa proporcionará pistas, informándote si el número secreto es mayor o menor que tu suposición.
- Continúa adivinando hasta que aciertes el número secreto o agotes todos tus intentos.
Para ejecutar el juego, debes tener Python instalado en tu computadora.
- Clona el repositorio o descarga el script de Python.
- Abre tu terminal o símbolo del sistema.
- Navega hasta la carpeta que contiene el script.
- Ejecuta el script utilizando el comando
python juego_adivinanza.py
.
python juego_adivinanza.py