Terminal game where the player can play Rock Paper Scissors against the computer. Player inputs a string 'rock', 'paper', or 'scissors' which is converted to a number and compared against Python's random number generator. The difference between the scores is used to calculate if the player wins or loses or if it is a tie.
I learned a lot in this project about trying to design and optimize algorithms to avoid repeating code. This was a good project because it involved getting input from the user, manipulating variables, random number generation, comparing variables and branching code, and using loops. All of the fundamentals of scripting are covered here which makes this a fun project.
Log in or sign up for Devpost to join the conversation.