Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

smhussain5/RPS-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.