https://github.com/smhussain5/rps-python
Terminal "Rock, Paper, Scissors" application using Python/PyCharm
https://github.com/smhussain5/rps-python
pycharm python terminal-application
Last synced: 3 months ago
JSON representation
Terminal "Rock, Paper, Scissors" application using Python/PyCharm
- Host: GitHub
- URL: https://github.com/smhussain5/rps-python
- Owner: smhussain5
- License: mit
- Created: 2023-12-26T01:20:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-28T23:35:10.000Z (over 1 year ago)
- Last Synced: 2025-02-12T08:32:58.024Z (5 months ago)
- Topics: pycharm, python, terminal-application
- Language: Python
- Homepage:
- Size: 260 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ROCK PAPER SCISSORS PYTHON

## 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
```python
docker pull smhussain5/rps-python
```
Then run the image as an interactive Docker container
```python
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 📲
[](mailto:[email protected]?)
[](https://www.linkedin.com/in/shabab-h)
[](https://twitter.com/shussain_5)
[](https://github.com/smhussain5)