A collection of interactive classic games and logic puzzles built entirely in Python and transformed into a web application using Streamlit.
This suite features three distinct games, each demonstrating different programming concepts:
A strategic card game playing against a dealer algorithm.
- Key Logic: Deck management, score calculation, and win/loss conditional logic.
The classic word-guessing game.
- Key Logic: String manipulation, input validation, and step-by-step visual updates.
A quick luck-based game against the computer.
- Key Logic: Randomization and persistent score tracking within the session.
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.
If you want to run this locally:
-
Clone the repository:
git clone [https://github.com/YorberR/Python_Arcade.git](https://github.com/YorberR/Python_Arcade.git) cd Python_Arcade -
Install dependencies:
pip install -r requirements.txt
-
Run the app:
streamlit run streamlit_app.py
This application is deployed using Streamlit Cloud, connected directly to this GitHub repository for Continuous Deployment (CI/CD).
This project is licensed under the MIT License.