Watch your potatoes grow in beautiful ASCII art! ๐ฑโก๏ธ๐ฅ
A mesmerizing Python program that simulates potato growth through animated ASCII art
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
๐ฌ 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
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.pySit back and watch your potato grow! ๐ฟ
# 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| 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 |
--width 60 |
|
--height |
--height 30 |
||
--output |
-o |
๐บ Where to show | --output both |
--file |
-f |
๐พ Output filename | --file potato.txt |
--no-colors |
๐จ Disable colors | --no-colors |
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.jsonEach 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!
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! |
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
| 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 |
Ensure everything works perfectly:
python3 test_potato.pyAll tests pass? Your potatoes are ready to grow! โ
# Watch a potato grow in hyperspeed!
python3 potato.py --speed 0.5# 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# Go big screen with your potato!
python3 potato.py --width 80 --height 40 --speed 1.0# Perfect for potato connoisseurs
python3 potato.py --variety fingerling --speed 2.0 --output both --file gallery_piece.txt| 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 |
Want to grow the potato empire? Here's how:
- ๐ฅ New Varieties: Create subclasses of
PotatoVariety - ๐ฑ Growth Stages: Extend the
GrowthStageenum - ๐จ ASCII Art: Enhance patterns in variety classes
- ๐งช Tests: Add tests for new functionality
Every contribution makes the potato world more beautiful!
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!
๐ฑโก๏ธ๐ฅ