I was inspired by the challenge prompt. I have never coded anything beyond assignments in class, never mind a game of any sort.

The game is simple: a user inputs their choice of rock, paper, or scissors, then a opposing move is randomly chosen. Depending on the opposing move, the user is told if they have won or lost.

I used Python in Replit to code this challenge.

I had a difficult time getting every aspect of the code to work, but eventually I got it. Some of my elif statements weren't responding to the input in the way I would have liked. My final else statement wasn't triggering for a long time. Also, I'm sure there's an easier way to do what I did, but my way works, too! Just using the tools in my toolbox. :)

I have quite a few accomplishments I'm proud of with this challenge! First, I was amazed at my ability to "think like a programmer" and use that approach to solve the problem. Second, my debugging skills are becoming chef's kiss, as evidenced by the fact that none of my code worked at first but now it does. I've only got a few hours worth of Python coding under my belt, but I am super proud of my efforts here.

Thanks for checking out my code! I hope to do more challenges like this in the future!

Built With

Share this project:

Updates