A two-player implementation of the classic Rock-Paper-Scissors game in a simple Python console application. The program takes the names of the two players and their choices ("piedra", "papel", or "tijera"). It determines and declares the winner based on the game's rules.
- Two-Player Support: Prompts for and displays the names of both players.
- Basic Game Logic: Implements the standard Rock-Paper-Scissors rules:
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
- Win/Loss/Tie Detection: Clearly announces the outcome of the round.
- Replay Option: Allows the players to start a second round immediately after the first one concludes.
- Python 3.x installed on your system.
- Save the code as a Python file (e.g.,
rps_game.py). - Open your terminal or command prompt.
- Run the script using the following command:
python rps_game.py
- Follow the prompts to enter the players' names and their choices.
Una implementación para dos jugadores del clásico juego de Piedra, Papel o Tijera en una sencilla aplicación de consola Python. El programa solicita los nombres de los dos jugadores y sus elecciones ("piedra", "papel" o "tijera"). Luego determina y anuncia al ganador basándose en las reglas del juego.
- Soporte para Dos Jugadores: Solicita y muestra los nombres de ambos jugadores.
- Lógica de Juego Básica: Implementa las reglas estándar de Piedra, Papel o Tijera:
- Piedra vence a Tijera
- Tijera vence a Papel
- Papel vence a Piedra
- Detección de Ganador/Perdedor/Empate: Anuncia claramente el resultado de la ronda.
- Opción de Rejuego: Permite a los jugadores comenzar una segunda ronda inmediatamente después de que concluye la primera.
- Python 3.x instalado en tu sistema.
- Guarda el código como un archivo de Python (por ejemplo,
juego_ppt.py). - Abre tu terminal o símbolo del sistema.
- Ejecuta el script usando el siguiente comando:
python juego_ppt.py
- Sigue las indicaciones para introducir los nombres de los jugadores y sus elecciones.