Please read the full instructions and write in C++.
The second paragraph states that the wins/losses/ties must be displayed, as well as storing the player information in a data text file. Do not copy someone else's work. If you don't know, don't answer.
Thank you.
Implement a C++ console application that simulates a Rock-Paper-Scissors game against the computer. When played between two people, each person picks one of three options (usually shown by hand gesture) at the same time, and a winner is determined. In the game, Rock beats Scissors, Scissors beats Paper, and Paper beats Rock. The program should randomly choose one of the three options (without revealing it), then ask for user input (choice of Rock, Paper, or Scissors), and finally compare it with the user's choice. At that point, the program reveals both choices and prints a statement indicating if the user won, the computer won, or if it was a tie. The application should keep track of the current score (i.e. the number of user wins, losses, and ties) and update the screen after every play. The user should be prompted after every game if they want to continue playing. At the beginning of the game, the program should also ask the user for their name and display this name when showing the score.
You do not need to use any user-defined functions for this assignment, but you can add whatever you like as long as the criteria at the end of this document have been met. No bonus marks will be given, however.
In addition to the requirements above, as part of this assignment, you are to implement storing of game data into a text file. The game should always ask for a username (which has to be at least 8 characters) and store the game results in a file with the same name as the username (username.txt). If the user has played the game before, the data should be read from the file and displayed on the screen before starting a new game. At the end of the game, the statistics should be saved in the same file.
The game should not allow for the same usernames unless it is the same user. This means that the game should check for existing usernames and prompt the new user for further authentication if needed. This would also guarantee that every user will have unique game data statistics stored and not overridden by another user with the same username.