A fun web-based balloon navigation game where you collect dollars while avoiding spikes! Built with Python Flask backend and interactive web interface.
Navigate your balloon (O) through the map to collect dollars ($) while avoiding deadly spikes (*)! Each dollar collected spawns a new spike at the previous dollar location, making the game progressively more challenging.
- Interactive Web UI: Play directly in your browser
- Bot Algorithms: Watch AI bots play with different strategies
- Bot Builder: Create and test your own bot algorithms
- Speed Controls: Multiple speed settings from Slow to Godspeed
- Score System: Track your best scores and compete on leaderboards
- Real-time Gameplay: Smooth animations and responsive controls
- Python 3.8 or higher
- Flask 2.0+
- Clone the repository:
git clone https://github.com/Bejjoeqq/Hello-Balloons.git
cd Hello-Balloons- Install dependencies:
pip install flask- Run the game:
python web_app.py- Open your browser and navigate to
http://localhost:5000
- W, A, S, D - Move your balloon
- Objective: Collect dollars ($) while avoiding spikes (*)
- Challenge: Each dollar collected creates a spike at the previous location
- Watch pre-built AI bots play automatically
- Choose from multiple bot algorithms
- Adjust playback speed for better observation
- Write your own Python bot algorithm
- Test your bot in real-time
- Save and share your creations
Your bot must implement the checkBot(hero) function:
def checkBot(hero):
# Get current position
pos = hero.getLocation() # Returns [x, y]
# Get dollar location
dollar = hero.findLocationDollar() # Returns [y, x]
# Your logic here...
return 'w' # Return: 'w', 'a', 's', or 'd'hero.getLocation()- Get balloon position [x, y]hero.findLocationDollar()- Get dollar position [y, x]hero.getMove()- Get current move directionhero.getMap()- Get full map state
The game includes several pre-built bots with different strategies:
- Champion Bot: Advanced pathfinding algorithm
- Perfect Score Bot: Optimized for high scores
- Quantum Neural Bot: AI-powered decision making
- And more!
Hello-Balloons/
├── web_app.py # Flask web server
├── main.py # CLI version entry point
├── app/
│ ├── __init__.py # App initialization
│ ├── hero.py # Hero/Balloon class
│ ├── map.py # Game map logic
│ ├── guide.py # Game utilities
│ ├── start.py # Game state management
│ ├── prompt.py # Input handling
│ └── bot/
│ ├── __init__.py # Bot loader
│ ├── template.py # Bot template
│ └── *.py # Individual bot algorithms
├── templates/
│ ├── index.html # Main menu
│ ├── game.html # Human player interface
│ ├── bot_demo.html # Bot demonstration
│ └── bot_builder.html # Bot creation interface
└── README.md # This file
🚧 Currently in active development
- ✅ Core gameplay mechanics
- ✅ Web interface
- ✅ Bot system integration
- ✅ Custom bot builder
- 🔄 Enhanced AI algorithms
- 🔄 Multiplayer features
- 🔄 Persistent online leaderboards
Important: This game currently uses local storage only:
- All scores and progress are stored in your browser
- Data may be lost if you clear browser data
- No online sync or backup currently available
We welcome contributions! Here's how you can help:
- Create a new Python file in
app/bot/ - Implement the required
NAMEvariable andcheckBot(hero)function - Test your bot using the Bot Builder interface
- Submit a pull request with your bot algorithm
- Open an issue on GitHub
- Provide detailed description and steps to reproduce
- Include browser information for web-related issues
# Clone the repo
git clone https://github.com/Bejjoeqq/Hello-Balloons.git
# Create development branch
git checkout -b feature/your-feature-name
# Make changes and test
python web_app.py
# Submit pull requestThis project is licensed under the MIT License - see the LICENSE file for details.
- AI-Assisted Development: This project was developed with assistance from AI tools for code generation, debugging, and documentation
- Game concept inspired by classic navigation puzzles
- Thanks to all contributors and bot algorithm creators
- GitHub: Bejjoeqq
- Repository: Hello-Balloons
Made with ❤️ and 🤖 AI assistance