Skip to content

luisbotteri/python-game-rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🪨📄✂️ Rock-Paper-Scissors Game / Juego de Piedra, Papel o Tijera

English

Description

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.

Features

  • 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.

Prerequisites

  • Python 3.x installed on your system.

How to Run

  1. Save the code as a Python file (e.g., rps_game.py).
  2. Open your terminal or command prompt.
  3. Run the script using the following command:
    python rps_game.py
  4. Follow the prompts to enter the players' names and their choices.

Español

Descripción

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.

Características

  • 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.

Requisitos Previos

  • Python 3.x instalado en tu sistema.

Cómo Ejecutar

  1. Guarda el código como un archivo de Python (por ejemplo, juego_ppt.py).
  2. Abre tu terminal o símbolo del sistema.
  3. Ejecuta el script usando el siguiente comando:
    python juego_ppt.py
  4. Sigue las indicaciones para introducir los nombres de los jugadores y sus elecciones.

About

Rock, paper, scissors game in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages