The main focus of this project is to develop a rock paper scissors game utilizing functions and loops, among other features.
Displayed below is an outline of how the project is structured:
- The initial function generates a random choice for the computer.
- The second function prompts the user or player to input their choice.
- The third function executes the game and determines whether the player or computer emerges victorious.
- Lastly, there is a function that implements a for loop to run the game multiple times in order to determine the final winner.
I have been diligently working on this project, but unfortunately, I am unable to understand why it is not functioning correctly.
// Your JavaScript code will go here