Friday, December 19, 2025

Cooking Mama

 There is a decision that I made almost daily but never gets easier: what to eat?

This is a serious concern, especially for women.
When I stayed at the boarding house, there were many times I got too focused on my part time job that I forgot to get meal for dinner and ended up with oatmeal as dinner.
Now that I am back at home, there is enough food but still deciding what to eat is difficult.

So I asked Gemini AI to make me a script which will give me random answer to the question "what will we eat today?"
Again, the Gemini is witty, it adds a little bit of "act", but of course the sample is always with crocodile.

here is the original script:

#!/bin/bash

# --- THE GURU'S MENU ---
# You can add or remove food items inside the brackets below.
menu=(
    "Nasi Goreng"
    "Cheeseburger & Fries"
    "Spicy Ramen"
    "Pepperoni Pizza"
    "Chicken Satay"
    "Sushi Platter"
    "Gado-Gado"
    "Steak"
    "Tacos"
    "Dim Sum"
    "Fried Chicken"
    "Caesar Salad (Healthy!)"
    "Pad Thai"
    "Grilled Cheese Sandwich"
    "Beef Rendang"
    "Pasta Carbonara"
)

# --- THE GURU'S BRAIN ---
# Count how many items are in the menu
num_items=${#menu[@]}

# Pick a random number between 0 and the number of items
random_index=$((RANDOM % num_items))

# Select the food at that index
chosen_food=${menu[$random_index]}

# --- THE DISPLAY ---
clear

echo -e "\033[1;32m" # Turn text Green for the Crocodile
cat << "EOF"
       _     _
      / \   / \
     ( o ) ( o )
      \ /___\ /    < "HELLO!"
       (  ^  )
       /  -  \
      /_______\
     (__)   (__)
EOF
echo -e "\033[0m" # Reset color

echo ""
echo "🐊 GURU CROCODILE IS MEDITATING..."
echo "   You ask: 'Oh Guru, what shall I eat today?'"
echo ""

# Add a little suspense
sleep 0.5
echo -n "   Consulting the swamp spirits"
sleep 0.5
echo -n "."
sleep 0.5
echo -n "."
sleep 0.5
echo "."
echo ""
echo ""
echo "==========================================="
echo -e "   THE GURU SAYS: \033[1;33m$chosen_food\033[0m"
echo "==========================================="
echo ""

Because it is about food, it reminds me of Cooking Mama, the Nintendo DS game.  On the game, the Mama always ask "what do you want to eat?" then it will guide the player to cook the meal.  Well, my mom, is a really good cook but an angry one, she hates to cook and kitchen is like a war zone.  So instead meditating to get the answer, my mom would smash the plates.

I designed the ASCII art of Cooking Mama on mac's note. It is not ideal for ASCII art because the spacing is different but good for "sketching". 

it looks like Billy the puppet from Saw.

Later I fixed the drawing directly on micro journal.




I still don't know the easy way to change colors, or how to make it centered in the middle but I kinda happy with this script. 


No comments: