smhussain5 / RPS-Python

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 89.2%Language:Dockerfile 10.8%