top of page

Rock, Paper, and Scissors

This is the code I made for a rock, paper, and scissors game! I really liked how this code turned out, even though it´s short it´s really useful and easy to read, I loved the output and how the random module was used, it´s a simple fun game to play.

Code Summary

It works with the main while loop that´s broken when you type "exit" and it´s the one that actually makes the game work, the computer selects a random option from a tuple, and depending on the user´s selected option, the user or the computer wins a point.

Comments


bottom of page