/RPS-Python

Terminal "Rock, Paper, Scissors" application using Python/PyCharm

Primary LanguagePythonMIT LicenseMIT

ROCK PAPER SCISSORS PYTHON

RPS Python GIF Demonstration

Problem 🤔

Fundamentals in Python are extremely important and require practice; however, practice should not be boring. The best way is to develop your own projects regardless of how "simple" it may seem.

Solution 💡

This terminal application utilizes user input to create an interactive experience. The Random module allows the CPU to make its own move. Both choices are stored in a tuple that is compared with winning tuples to determine the winner. This game logic is wrapped within a while loop that allows for players to play the game again if they would like.

Quick Start âš¡

If you have Docker installed, you can run this application on your own machine with just 2 steps!

Pull the image from Docker Hub

docker pull smhussain5/rps-python

Then run the image as an interactive Docker container

docker run --rm -it smhussain5/rps-python

Technologies Used âš™

  • PyCharm
  • Python
    • If/Elif/Else statement
    • "In" operator
    • Input
    • "Random" module
    • Tuples
    • While loop

Challenges 💢

This was a straightforward application, but required proper organization for clean code. Fortunately, PEP8 guidelines built into PyCharm allows developers to follow best practices easily!

Insights 💭

This project was great practice for conditionals like while loops and if/else statements. It was also great to follow PEP8 guidelines for better code readibility.

Contact 📲

Static Badge
Static Badge
Static Badge
Static Badge