Quickstart Guide
Get Python Arcade Suite up and running on your local machine in just a few minutes. This guide will walk you through the essential steps to start playing games.Prefer not to install? Try the live demo to play immediately in your browser!
Prerequisites
Before you begin, ensure you have:- Python 3.9 or higher installed on your system
- Git for cloning the repository
- pip for installing dependencies (comes with Python)
Quick Setup
Clone the Repository
Open your terminal and clone the Python Arcade Suite repository:This downloads all game files and source code to your local machine.
Install Dependencies
Install the required Python packages using pip:
The only dependency is Streamlit, which handles the web interface and state management.
Run the Application
Start the Streamlit development server:You should see output similar to:The app will automatically open in your default browser.
How the App Works
Here’s a quick overview of the main application structure:app() function that handles:
- Game initialization
- Session state management
- User interface rendering
- Game logic and win/loss conditions
Playing the Games
Blackjack 🃏
Make Your Move
- Hit: Draw another card (try to get closer to 21)
- Stand: Keep your current hand and let the dealer play
Hangman 🔤
Rock, Paper, Scissors ✂️
Stopping the Application
To stop the Streamlit server:- Go back to your terminal
- Press
Ctrl + C - The server will shut down gracefully
Troubleshooting
Port 8501 is already in use
Port 8501 is already in use
If you see an error about port 8501 being in use:This runs the app on port 8502 instead.
Module not found error
Module not found error
If you see Make sure you’re using the correct Python environment.
ModuleNotFoundError: No module named 'streamlit':Browser doesn't open automatically
Browser doesn't open automatically
Manually open your browser and navigate to:
What’s Next?
Installation Guide
Learn about detailed setup options and configuration
Game Architecture
Understand how the games are structured
Deployment
Deploy your own version to Streamlit Cloud
Games Overview
Explore all available games