Search⌘ K
AI Features

Game Project: Rock, Paper, Scissors

Explore how to build a complete Rock Paper Scissors game in C++ that lets users play against the computer. You'll learn to use loops for repeated rounds, conditionals for game logic, manage user input and scoring, and organize your code with functions for modularity and clarity.

Let’s build a simple but fun game where the user plays Rock, Paper, Scissors against the computer! We’ll loop the game until the user wants to exit and show the current score after each round.

You’ll practice:

  • Loops

  • Conditionals

  • Strings and arrays

  • Random numbers

  • Functions

Project requirements

The game should let the user play Rock, Paper, Scissors against the computer in a loop. After each round, it should show who won and the current score. The game continues until the user types “Exit,” and then shows the final score. The following interface gives you a clearer picture of the project. To start, type your name in the window below ...