Skip to content
/ potato Public

A Python program that creates mesmerizing ASCII animations simulating the complete lifecycle of potato growth from seed to harvest across 12 stages with 4 different varieties.

License

Notifications You must be signed in to change notification settings

ameares/potato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅ” Potato Growth Simulator

Python License Platform

Watch your potatoes grow in beautiful ASCII art! ๐ŸŒฑโžก๏ธ๐Ÿฅ”

A mesmerizing Python program that simulates potato growth through animated ASCII art


๐ŸŽฅ What This Does

Ever wondered what it looks like when a potato grows? Wonder no more! This program creates stunning ASCII animations showing the complete lifecycle of a potato from a tiny seed to a fully grown, harvest-ready tuber.

Choose your potato destiny:

  • ๐ŸคŽ Russet - The classic American potato
  • ๐ŸŸก Yukon Gold - Creamy and delicious
  • ๐Ÿ”ด Red - Beautiful red-skinned variety
  • ๐Ÿฅ– Fingerling - Cute little finger-shaped potatoes

โœจ Features

๐ŸŽฌ 12 Growth Stages - From seed to harvest ready, watch every moment
๐ŸŽจ 4 Unique Varieties - Each with custom ASCII art patterns
โšก Configurable Speed - Control the pace of growth
๐Ÿ“ Custom Canvas - Set your own animation dimensions
๐Ÿ’พ Multiple Outputs - Terminal display, file export, or both
๐ŸŽ›๏ธ CLI Interface - Professional command-line interface
โš™๏ธ JSON Config - Save your favorite settings

๐Ÿš€ Quick Start

Zero dependencies needed! Just Python 3.8+ and your terminal.

# Clone and run immediately
git clone <your-repo-url>
cd potato-growth-simulator
python3 potato.py

Sit back and watch your potato grow! ๐Ÿฟ

๐ŸŽฎ Usage Examples

๐Ÿƒโ€โ™‚๏ธ Quick & Easy

# Default magic - russet potato in terminal
python3 potato.py

# Speed run! โšก
python3 potato.py --speed 0.5 --variety yukon_gold

# Save your masterpiece ๐Ÿ’พ
python3 potato.py --output file --file my_epic_potato.txt

# Go big or go home! ๐Ÿ“
python3 potato.py --width 80 --height 40

๐ŸŽ›๏ธ All Command Options

Option Short Description Example
--config -c ๐Ÿ“„ Configuration file --config settings.json
--speed -s โฑ๏ธ Seconds between stages --speed 1.5
--variety -v ๐Ÿฅ” Potato type --variety red
--width -w โ†”๏ธ Canvas width --width 60
--height โ†•๏ธ Canvas height --height 30
--output -o ๐Ÿ“บ Where to show --output both
--file -f ๐Ÿ’พ Output filename --file potato.txt
--no-colors ๐ŸŽจ Disable colors --no-colors

โš™๏ธ Configuration File

Create your ultimate potato-growing setup! Save this as config.json:

{
    "growth_speed": 1.5,
    "canvas_width": 50,
    "canvas_height": 25,
    "variety": "yukon_gold",
    "show_colors": true,
    "output_format": "both",
    "output_file": "my_amazing_potato.txt"
}

Then activate your settings:

python3 potato.py --config config.json

๐Ÿฅ” Meet the Potato Family

Each variety is a unique ASCII masterpiece with its own personality:

Variety Emoji Description ASCII Style
Russet ๐ŸคŽ The dependable classic Standard box-drawing
Yukon Gold ๐ŸŸก Smooth and buttery Double-line elegance
Red ๐Ÿ”ด Bold and beautiful Thick line characters
Fingerling ๐Ÿฅ– Cute and compact Curved artistic flair

Each potato tells its own growth story through carefully crafted ASCII art!

๐ŸŒฑ The Journey of Growth

Watch your potato transform through 12 epic stages:

Stage Description Visual
๐ŸŒฐ Seed The humble beginning A tiny dot in the soil
๐ŸŒฑ Germination Life awakens Roots start spreading
๐ŸŒฟ Sprouting Breaking ground Green shoot emerges
๐ŸŒฑ Early Vegetative Getting stronger Small leaves appear
๐Ÿƒ Vegetative Growing up Stem and leaves develop
๐ŸŒณ Root Development Underground expansion Root system grows
๐ŸŒธ Flowering Beauty blooms Flowers appear (optional)
๐Ÿฅ” Early Tuber Magic begins First potatoes form
๐Ÿฅ” Tuber Formation Getting serious More potatoes develop
๐Ÿฅ” Tuber Bulking Size matters Potatoes grow bigger
๐ŸŒฟ Maturity Almost ready Full-grown plant
๐Ÿฅ” Harvest Ready The grand finale Time to dig up your treasure!

๐Ÿ—๏ธ Architecture

Clean, modular, and extensible design:

๐Ÿ›๏ธ potato.py              - Main program + CLI magic
๐Ÿ”Œ potato_varieties.py     - Plugin system for varieties  
โš™๏ธ config.json            - Your personal settings
๐Ÿงช test_potato.py          - Bulletproof test suite

๐Ÿงฉ Core Components

Class Purpose Superpower
PotatoConfig ๐Ÿ“‹ Configuration Manages all your settings
GrowthStage ๐Ÿ“Š Stage tracking Knows every growth phase
PotatoArt ๐ŸŽจ ASCII artistry Creates beautiful patterns
AnimationEngine ๐ŸŽฌ Rendering Brings potatoes to life
PotatoGrowthSimulator ๐ŸŽญ The director Orchestrates the whole show

๐Ÿงช Testing

Ensure everything works perfectly:

python3 test_potato.py

All tests pass? Your potatoes are ready to grow! โœ…

๐ŸŽช Epic Examples

โšก Speed Demon

# Watch a potato grow in hyperspeed!
python3 potato.py --speed 0.5

๐Ÿญ Potato Factory (All Varieties)

# Create a complete potato collection
for variety in russet yukon_gold red fingerling; do
    python3 potato.py --variety $variety --output file --file "${variety}_masterpiece.txt" --speed 0.1
done

๐ŸŽฌ IMAX Experience

# Go big screen with your potato!
python3 potato.py --width 80 --height 40 --speed 1.0

๐ŸŽจ The Artist's Setup

# Perfect for potato connoisseurs
python3 potato.py --variety fingerling --speed 2.0 --output both --file gallery_piece.txt

๐Ÿ”ง Technical Specs

Requirement Details
๐Ÿ Python 3.8+ (no external deps!)
๐Ÿ’ป Platform Linux terminal (ANSI optimized)
๐Ÿ”ค Encoding UTF-8 for beautiful Unicode
โšก Performance Memory efficient for marathon sessions
๐Ÿ“„ Output Plain text with Unicode magic

๐Ÿค Contributing

Want to grow the potato empire? Here's how:

  1. ๐Ÿฅ” New Varieties: Create subclasses of PotatoVariety
  2. ๐ŸŒฑ Growth Stages: Extend the GrowthStage enum
  3. ๐ŸŽจ ASCII Art: Enhance patterns in variety classes
  4. ๐Ÿงช Tests: Add tests for new functionality

Every contribution makes the potato world more beautiful!

๐Ÿ“œ License

MIT Licensed - Grow potatoes freely!

See LICENSE.md for the legal potato growing terms.


Made with ๐Ÿฅ” and โค๏ธ

Happy potato growing! May your ASCII art be ever beautiful and your growth stages smooth!

๐ŸŒฑโžก๏ธ๐Ÿฅ”

About

A Python program that creates mesmerizing ASCII animations simulating the complete lifecycle of potato growth from seed to harvest across 12 stages with 4 different varieties.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published