Skip to content

YorberR/Python_Arcade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕹️ Python Arcade Suite (Streamlit Edition)

Python Streamlit Status

A collection of interactive classic games and logic puzzles built entirely in Python and transformed into a web application using Streamlit.


🎮 Included Games

This suite features three distinct games, each demonstrating different programming concepts:

1. 🃏 Blackjack

A strategic card game playing against a dealer algorithm.

  • Key Logic: Deck management, score calculation, and win/loss conditional logic.

2. 🔤 Hangman

The classic word-guessing game.

  • Key Logic: String manipulation, input validation, and step-by-step visual updates.

3. ✂️ Rock, Paper, Scissors

A quick luck-based game against the computer.

  • Key Logic: Randomization and persistent score tracking within the session.

🛠️ Technical Highlights

This project goes beyond simple scripting by implementing Web App State Management:

  • Session State Management (st.session_state): Unlike standard Python scripts, Streamlit re-runs the code on every interaction. This project effectively manages state to persist scores, card hands, and game progress across re-runs.
  • Modular Design: Clean code structure handling game loops and user inputs via a web interface.
  • Responsive UI: interactive widgets (buttons, text inputs) tailored for a seamless user experience.

💻 Installation & Local Run

If you want to run this locally:

  1. Clone the repository:

    git clone [https://github.com/YorberR/Python_Arcade.git](https://github.com/YorberR/Python_Arcade.git)
    cd Python_Arcade
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the app:

    streamlit run streamlit_app.py

☁️ Deployment

This application is deployed using Streamlit Cloud, connected directly to this GitHub repository for Continuous Deployment (CI/CD).

📄 License

This project is licensed under the MIT License.

About

A collection of interactive arcade games and logic puzzles built with Python, deployed as a web app using Streamlit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages