Share your repls and programming experiences

← Back to all posts
Rock paper scissors program
DorshReal (4)

I have been working on this program that allows a user to play rock paper scissors with the computer. To do so, the user must enter a number corresponding to a certain play, such as 1 = Rock, 2 = Paper and 3 = Scissors. Your play will be displayed along with the computer through a randomly generated output, making it the game as fair as possible. The outcome of the plays will be displayed in coloured text, something that I haven't used before. In the end, you can choose to play again or exit, and doing the latter the console will display the # of wins you have. I hope you enjoy!

Commentshotnewtop