The person running the code is one of the player, and the other player is the computer. The computer randomly generate "rock", "paper" or "scissor" and you as the human player will enter "r", "p" or "s" as one of your choices.
You start off with 50 points ($50). If you beat the computer, you gets 10 points. If the computer beats you, you lose 10 points. You lose the game when you have less than 10 points.
Random
Defining function
While-loop
IF, Else-if