Skip to content

A Python-based Rock Paper Scissors game featuring user authentication, score tracking, and a lives system. Players can create accounts, log in, and compete against the computer, with added features like help commands and game status updates.

Notifications You must be signed in to change notification settings

yashmittalz/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

Overview

This is a simple command-line Rock Paper Scissors game developed in Python. The game includes user authentication, allowing players to create accounts and log in to play. Players can track their scores, lives, and draws while competing against the computer.

Features

  • User authentication with username and password
  • Strong password validation
  • Score tracking
  • Lives system
  • Help commands for game rules and status
  • Clear terminal output for game over

Getting Started

Prerequisites

  • Python 3.x installed on your machine
  • Basic knowledge of running Python scripts

Installation

  • Clone the repository:
    git clone https://github.com/yourusername/Rock-Paper-Scissors.git
    cd Rock-Paper-Scissors

Running the Game

  1. To set up an account, run:

    python acc_setup.py
  2. To play the game, run:

    python main.py

How to Play

  • After logging in, you will be prompted to choose between Rock, Paper, or Scissors.
  • You can also use the following commands:
    • !help: Display the game rules
    • !lives: Check remaining lives
    • !score: Check your score
    • !drew: Check how many times you've drawn
    • exit: Exit the game

File Structure

Rock Paper Scissors
|-- acc_setup.py # Account setup script for creating user accounts
|-- main.py # Main game logic for the Rock Paper Scissors game
|-- accounts.txt # File storing usernames and passwords
|-- README.md # Project documentation

Author

Developed by Yash Mittal.
Visit Website for more projects.

About

A Python-based Rock Paper Scissors game featuring user authentication, score tracking, and a lives system. Players can create accounts, log in, and compete against the computer, with added features like help commands and game status updates.

Topics

Resources

Stars

Watchers

Forks

Languages