Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-28T23:35:10.000Z (9 months ago)
- Last Synced: 2024-10-16T22:07:41.087Z (20 days 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
![RPS Python GIF Demonstration](https://github.com/smhussain5/RPS-Python/blob/main/RPS_PYTHON.gif?raw=true)
## 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 📲
[![Static Badge](https://img.shields.io/badge/Send%20me%20an%20email-212121?style=flat-square&logo=gmail&logoColor=EA4335)](mailto:[email protected]?)
[![Static Badge](https://img.shields.io/badge/Connect_with_me_on_LinkedIn-212121?style=flat-square&logo=linkedin&logoColor=0A66C2)](https://www.linkedin.com/in/shabab-h)
[![Static Badge](https://img.shields.io/badge/Follow_me_on_Twitter-212121?style=flat-square&logo=twitter&logoColor=1D9BF0)](https://twitter.com/shussain_5)
[![Static Badge](https://img.shields.io/badge/Follow_me_on_GitHub-212121?style=flat-square&logo=github&logoColor=FAFAFA)](https://github.com/smhussain5)