Vigyata.AI
Is this your channel?

CODE WITH ME | Rock Paper Scissors Game in Python EASY *Beginner Friendly*

27.3K views· 826 likes· 18:09· Dec 2, 2024

🛍️ Products Mentioned (3)

Hi ☺️ hope you enjoy this coding video! Checkout EchoAPI, a great (and totally free) API testing extension for VS Code: https://echoapi.com :) GitHub Repo: https://github.com/carmensantos/rock-paper-scissors 🤓 about I’m a software engineer based in London with a background in mechanical and aerospace engineering. Most of my time is spent reading, coding and drinking too much coffee. I got into coding by automating simulation workflows and building EdgeSheet.com, and now I’m documenting my life as an engineer on the internet. Thanks for watching! :) 📝 chapters 📝 contact info@csjackie.com 🎵 music the music in my videos comes from: https://share.epidemicsound.com/5swi7a 👀 disclaimer Views and opinions are my own and do not represent or reflect the opinions of my current or past employer(s). This video is sponsored by EchoAPI! 🏷 hashtags & video content Software engineer, rock paper scissors game, python game, pygame, code with me, coding vlog, coding video, programming, software engineering, developing software, pandas, data structures and algorithms, rock paper scissors, gaming, game developmet, gaming engine #gamedev #pythonprogramming #softwareengineer

About This Video

In this Code With Me, I build a beginner-friendly Rock Paper Scissors game in Python using object-oriented programming. Quick heads up (like I say in the video): this isn’t a polished step-by-step tutorial—I’m coding it on the spot, sharing my thought process, the little bugs, and the “why is this complaining?” moments along the way. Even though Rock Paper Scissors is a simple game, it’s perfect for practicing fundamentals like classes, enums, random choice, and handling user input. I structure the project with a Shape enum plus three main classes: Game (to orchestrate the flow), Player (reads input), and Computer (picks randomly). We play up to three valid rounds, keep score, and handle edge cases like ties (ties don’t count as a round). I also run into a classic mismatch issue—comparing enum objects vs strings and uppercase vs lowercase—and fix it by normalizing the input so it matches the options. By the end, the game prints both choices each round, updates scores correctly, and announces a winner. I also talk about how you could improve the design by creating a generic Player base class and having Human/Computer inherit from it—because yes, my brain defaults to spaghetti code too, and that’s exactly why these projects are such good practice.

Frequently Asked Questions

🎬 More from CS Jackie