A downloadable game

Download NowName your own price

Created after learning about functions and random number generation in C++. This is a simple Rock-Paper-Scissors game where the computer’s choice is generated randomly, and the player’s choice is collected and validated using user-defined functions.

Features:

  • First-to-5 wins gameplay, displaying both player and computer selections each round.

  • Uses two user-defined value-returning functions:

    1. getUserSelection() – gets and validates the user’s input.

    2. getItemName(int selection) – returns the string corresponding to the user or computer choice.

  • Demonstrates use of functions, return values, random numbers, and basic game logic.

Download

Download NowName your own price

Click download now to get access to the following files:

123.cpp 2.7 kB
123.exe 16 kB

Leave a comment

Log in with itch.io to leave a comment.