Fruit Frenzy, one prompt at a time

Safa started from the lesson's matching-game sentence. Every change after that was her idea. Open any version to play the game exactly as it was at that moment.

  1. 1

    Safa typed the lesson's sentence, with fruit picked by her

    Let me pop fruit πŸ“ when two of the same color are touching.

    Vibe said

    Done β€” I added the first step.

    I made a small interactive page at index.html that shows a friendly mascot and draggable fruits. Drag fruits so two of the same color are touching, then tap one β€” both matching fruits pop with a little pop sound and sparkle (that's the match!).

    What should we add next? Which color fruit or special sound do YOU want next?
  2. 2

    Safa typed

    make my friits 100

    Vibe said

    All set β€” I made 100 fruits in index.html (with some nearby matching pairs so you can pop right away!).

    I made them bigger and playful β€” what should happen next when lots of fruits pop at once? Do you want a big cheer sound, confetti, or extra points?
  3. 3

    Safa typed

    make my fruits 100,000,000

    Vibe said

    Wow β€” that’s a HUGE number of fruits! πŸ“πŸ‹πŸ₯πŸ‡

    I can’t actually put 100,000,000 real fruit pieces in the page β€” the browser would freeze. But I can do one of two safe, fun things:

    - Pretend (Recommended): show a big counter that says you have 100,000,000 fruits, but only draw a few hundred you can play with. When you pop fruits it will act like you popped many (big points, sparkles). This is fast and fun.
    - Try to make them all (Not recommended): actually create 100,000,000 DOM fruits β€” the page will likely crash and stop working.

    Which do you want? And if we pretend, do you want each pop to give lots of points (like +1000) or a normal +10?

    No change to the game this time. Vibe asked a question instead, and Safa moved on to her next idea.

  4. 4

    Safa typed

    add a botton that makes a rat come and eat all of the fruits

    Vibe said

    All done β€” I added a πŸ€ Rat Eats All button to index.html. When you press it the rat runs across the board munching fruits (they disappear with munch sounds and you get points).

    What should we make next? Should the rat wear a silly hat, or should munching give extra points?
  5. 5

    Safa typed

    add a racoon that eats the rat

    Vibe said

    All set β€” I added a 🦝 Raccoon! button to index.html. When you press it the raccoon runs in and, if a rat is on screen, it gobbles the rat with a chomp sound, gives a sparkle and bonus points, then scurries away. If there's no rat, the raccoon sniffs and leaves.

    I made the change small and playful β€” do you want the raccoon to also eat fruits, wear a silly hat, or be sleepy instead?
  6. 6

    Safa typed

    add a botton that makes a poler bear add maet in the fruits

    Vibe said

    Done β€” I added a πŸ»β€β„οΈ Polar! button to index.html. When pressed the polar bear slides in from the top and drops several meat pieces (πŸ–) into the play area; those meats act like fruits (draggable, matchable, and poppable).

    Nice β€” what should the polar bear do next? Should it wear sunglasses, give bonus points for meat matches, or nap after dropping?