Skip to content

piyahub/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

Overview

This project is a simple implementation of the classic Rock-Paper-Scissors game written in C++. It allows a single player to compete against the computer in a match of strategy and chance.

Features

  • Single-player mode against a computer opponent.
  • Randomized computer choices for fair gameplay.
  • User-friendly interface for input and feedback.
  • Input validation to ensure smooth gameplay.

How to Play

  1. Run the program.
  2. Enter your choice: Rock, Paper, or Scissors (R/P/S).
  3. The computer will randomly generate its choice.
  4. The winner will be determined based on the rules:
    • Rock beats Scissors.
    • Scissors beats Paper.
    • Paper beats Rock.
  5. The result will be displayed: Win, Lose, or Draw.

Requirements

  • A C++ compiler (e.g., GCC, Clang, MSVC).
  • C++17 or later (optional but recommended).
├── main.cpp        ## Main source code file
├── README.md       ## Project documentation
├── LICENSE         ## License for the project
└── .gitignore      ## Git ignore file```



About

A C++ based Rock-Paper-Scissor game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages