Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 603 Bytes

File metadata and controls

10 lines (7 loc) · 603 Bytes

rockPaperScissor

Odin rock paper scissor exercise on javascript The entire project is run using prompts and alerts for user interaction. The main function of the game is called playGame(), it defines the loop for the game, it calls the game round function called gameRound() per ieration count and defines two variables

The loop defined controls the re-execution of the code 5 times in total by setting i = 0, i < 5, i ++

Variables defined are the functions used to get computer and human choices

Each game round function by using values gotten from both variables defined earlier.