Skip to main content

Beautiful CLI flower garden game - water flowers and watch them grow into stunning patterns!

Project description

🌺 Flower Garden CLI

Beautiful CLI flower garden game - water flowers and watch them grow into stunning patterns!

Transform your terminal into a magical garden where you can nurture 5 different types of flowers, each growing into unique mathematical patterns and fractals.

Flower Garden Demo Python Version License

🌸 Features

  • 5 Unique Flower Types: Each with distinct mathematical patterns

    • 🌹 Spiral Rose - Fibonacci spirals with blooming petals
    • 🌳 Fractal Tree - Recursive branching with leaves
    • 🌺 Mandala Bloom - Geometric circular patterns
    • 🌊 Wave Garden - Flowing sine wave patterns
    • Star Burst - Radiating star patterns
  • Growth System: 10 levels of growth for each flower

  • Persistent Save: Your garden state is automatically saved

  • Colorful Display: Beautiful terminal colors (with colorama)

  • Interactive Menu: Easy-to-use command interface

🚀 Quick Start

Install and run with a single command:

pip install flower-garden-cli
flower-garden

Alternative command:

garden

📦 Installation Methods

Method 1: pip install (Recommended)

# Install from PyPI (when published)
pip install flower-garden-cli

# Or install from GitHub
pip install git+https://github.com/bdavidzhang/flower-garden-cli.git

Method 2: Local Development

# Clone the repository
git clone https://github.com/bdavidzhang/flower-garden-cli.git
cd flower-garden-cli

# Install in development mode
pip install -e .

# Run the game
flower-garden

Method 3: Direct from Source

# Download and run directly
curl -O https://raw.githubusercontent.com/bdavidzhang/flower-garden-cli/main/flower_garden_cli/main.py
python main.py

🎮 How to Play

  1. Launch the game: Run flower-garden in your terminal
  2. Choose an action: Select from the numbered menu options
  3. Water flowers: Watch them grow from seeds to beautiful patterns
  4. Enjoy the patterns: Each growth level reveals more complexity
  5. Save automatically: Your progress is saved between sessions

Menu Options:

  • 1-5: Water individual flower types
  • 6: View your entire garden
  • 7: Water all flowers at once
  • 8: Reset garden (start over)
  • 9: Quit game

🎨 Flower Types Preview

🌹 Spiral Rose (Level 6)             ⭐ Star burst (Level 4)
          ·                                  ·
        ·······                              ·
      ✿❀✿❀✿····                    ·   ·   ·
    ✿❀····✿····                    · ✧ ·
    ······❀✿···                      ✧ ✧ ✧
    ·······❀···                        ✧✧✧
   ······❀❀·····                 ···✧✧✧★✧✧✧···
    ···········                        ✧✧✧
    ···········                      ✧ ✧ ✧
    ···········                    · ✧ ·
      ·········                      ·   ·   ·
        ·······                          ·
          ·                              ·

🛠️ Development

Project Structure

flower-garden-cli/
├── flower_garden_cli/
│   ├── __init__.py
│   └── main.py
├── pyproject.toml
├── README.md
├── LICENSE
└── tests/
    └── test_main.py

Local Development Setup

# Clone and setup
git clone https://github.com/bdavidzhang/flower-garden-cli.git
cd flower-garden-cli

# Create virtual environment
python -m venv venv
source venv/bin/activate  # or `venv\Scripts\activate` on Windows

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black flower_garden_cli/

📋 Requirements

  • Python: 3.7 or higher
  • Dependencies:
    • colorama (for colored terminal output)
  • Platform: Cross-platform (Windows, macOS, Linux)

📄 License

MIT License - see LICENSE file for details.

🤝 Contributing

Contributions welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

🌟 Support

If you enjoy this project, please give it a ⭐ on GitHub!

Issues? Please report them here.


Grow your digital garden, one flower at a time 🌱✨

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flower_garden_cli-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flower_garden_cli-1.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file flower_garden_cli-1.0.0.tar.gz.

File metadata

  • Download URL: flower_garden_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for flower_garden_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e5f66181db10ed635caebd63b0ea0420024b309df4f4234a4f6489b0c8f02f5f
MD5 fc3756147f48d759408935d03214c1a0
BLAKE2b-256 d8b4806b24293530950348ab68b68c04849e7cc96ca5b8a54fd4b20c1dc4d6c6

See more details on using hashes here.

File details

Details for the file flower_garden_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flower_garden_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e99b70df4baa324331da309fadb35f34933c9bb952dcf1051b3adfcbbdbdad9c
MD5 f0d41e93a277c75da7a51b6045009d00
BLAKE2b-256 b320db1955d194349382e876ab46c451ed74dd82fc0b78db9367f553da18e384

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page