DEV Community

Harsh
Harsh

Posted on

Rock, Paper, Scissors Game

Hey coding enthusiasts! Ever wondered why people dive into coding? I found my answer through the joy of creation. Thanks to Codecademy, I discovered the thrill of turning code into something tangible. Seeking a beginner-friendly project, the idea of a Rock, Paper, Scissors game emerged – a classic made digital. It's a nod to the simplicity of Python and the power it offers to coding beginners.

Image description

I've created a simple Rock, Paper, Scissors game in Python. Upon starting, a welcoming message is displayed, and I'm prompted to choose the number of players—either one or two. If I choose one player, I play against the computer, which randomly selects rock, paper, or scissors. I input my choice, and the code determines the winner based on the game's rules. The result is then displayed, and I have the option to play again or exit the game.

If I opt for two players, each player takes turns entering their choices, and the code determines the winner accordingly. The game continues until I decide to stop playing. I've organised the code using functions to make it modular and easy to understand. It provides a straightforward and interactive implementation of the classic Rock, Paper, Scissors game, offering an enjoyable experience for one or two players.

For a closer look, head to my GitHub repository.(https://github.com/Harsh10098/Codecademy-Portfolio-Project.git)

Embarking on this coding adventure, I discovered that the "why" behind coding is personal and diverse. Codecademy, thank you for the inspiration! Whether you're a beginner or seasoned coder, may your coding adventures be as joyful as mine.

Happy coding, enthusiasts – where every line of code brings your ideas to life!

Top comments (0)