ProjectBeta

Rock-Paper-Scissors (C++)

Easy
57 completions
~ 4 hours
3.5

This project is designed to enhance your programming skills in C++, focusing on basics like control structures, loops, random number generation, input validation, and function creation. By the end of this project, you will have a fully functional Rock, Paper, Scissors game that you can play against your computer.

Provided by

JetBrains Academy JetBrains Academy

About

Welcome to the Rock, Paper, Scissors project! In this assignment, you will develop a C++ program that simulates the classic hand game played between two players. The game has a simple set of rules: Rock crushes Scissors, Scissors cuts Paper, and Paper covers Rock.

Graduate project icon

Graduate project

This project covers the core topics of the Introduction to C++ course, making it sufficiently challenging to be a proud addition to your portfolio.

At least one graduate project is required to complete the course.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Your program should welcome the player to the game and prompt them to make a choice. It should be able to read the user's input from the console and echo it back, confirming the user's choice.
Ensure the user inputs are valid and correct. The program should check if the player's input is one of the allowed choices: Rock, Paper, or Scissors.
Add the core game mechanics. The program should now be able to play a full game of Rock, Paper, Scissors. Let's learn to randomly generate answers.
A pleasant interface and ease of play mean a lot to the consumer.
Let's finish the game. Let's introduce a multi-round game structure. We will display statistics of victories and defeats.

Reviews

Clayton Risen Mercer
4 months ago
The last stage of the project is horrible. The examples do not match what the test cases actually look for. The explanation given for failed test cases make no sense and provide no insight either.
Jeroen Taheij
4 months ago
How to create functions with C++That sometimes you have to be miticulous with this project and other times a bit less.It helps to look at the hints and comments, because its not all straight forward.
Bludgeon
5 months ago
The project is broken. The manner in which it sums up draws is inaccurate. To complete the project I forced the program to always have a winner, no draws.

3.5

Learners who completed this project within the Introduction to C++ course rated it as follows:
Usefulness
4.2
Fun
3.5
Clarity
2.9