Inspiration

The inspiration behind this project was to create a simple yet engaging game that could serve as a foundation for learning programming basics. The rock, paper, scissors game is a classic game that everyone knows, making it a good choice for a beginner's project.

What it does

The rock, paper, scissors game simulates the classic game where two players choose either rock, paper, or scissors, and the winner is determined by the game's rules. In this version of the game, the player chooses their option via the console, and the computer makes its choice randomly. The game continues until both players decide to stop.

How we built it

Creating this game involved writing several functions in Python. The get_computer_choice() function generates a random choice for the computer. The get_player_choice() function gets the player's choice from the console. The determine_winner() function decides the winner based on the game's rules. Finally, the main part of the program prompts the user for their choice, generates the computer's choice, and determines the winner.

Challenges we ran into

One of the main challenges was handling invalid inputs. The player needs to enter either 'rock', 'paper', or 'scissors'. If they enter anything else, the program should inform them of their mistake and ask for their choice again. Implementing this required careful error checking and handling.

Accomplishments that we're proud of

We're proud of successfully creating a simple yet engaging game. Even though it's a basic game, it lays the groundwork for understanding programming concepts such as functions, control flow, and user input.

What we learned

From this project, we learned the basics of programming, including how to define and call functions, how to use control flow statements, and how to handle user input. We also learned about the importance of error checking and handling in programming.

What's next for Rock-Paper-Scissor

As we move forward with this project, we plan to expand on the rock, paper, scissors game by introducing more features. We aim to introduce a scoring system, allow for multiple rounds, and perhaps even implement different strategies for the computer's choices.

Built With

Share this project:

Updates