� k→∞ Sandwich Packing 🍞

Welcome to Sandwich Packing!

Objective: Pack as many geometric sandwiches as possible into your box while maximizing the total area!

How to Play:

  1. Choose your level (1-7) - each level introduces new shapes!
  2. You'll receive a quadrilateral donut box and sandwiches based on your level
  3. Select a sandwich from your pile by clicking on it
  4. Position it using the arrow keys (↑↓←→)
  5. Rotate it using the < and > keys
  6. Place sandwiches without overlapping each other or the box edges
  7. 🐭 Watch out for mice at Level 5+! They'll appear randomly and take bites out of your sandwiches
  8. You can return sandwiches to your pile, but mice bites stay!
  9. When done, click "Done Packing" and calculate your total area

Levels & Shapes:

  • Level 1: Square sandwiches
  • Level 2: Squares + Rectangles
  • Level 3: Squares + Rectangles + Triangles
  • Level 4: Previous shapes + Parallelograms + Trapezoids
  • Level 5: Previous shapes + Circles 🐭 (Mice start appearing!)
  • Level 6: Previous shapes + Ellipses 🐭
  • Level 7: All shapes + Donut Rings 🐭

Math Challenge:

Each sandwich shows its dimensions. Calculate the area using these formulas:

  • Square: A = s² (where s is side length)
  • Rectangle: A = w × h (width times height)
  • Triangle: Use Heron's formula: A = √[s(s-a)(s-b)(s-c)] where s = (a+b+c)/2
  • Parallelogram: A = b × h (base times height)
  • Trapezoid: A = ½(b₁ + b₂)h (where b₁, b₂ are bases and h is height)
  • Circle: A = πr² (where r is radius)
  • Ellipse: A = πab (where a and b are semi-axes)
  • Donut Ring: A = π(R² - r²) (outer radius R, inner radius r)

Tips: Plan your packing strategy! Rotate and position carefully to fit more sandwiches. Higher levels are more challenging!

Auto-starting in 60 seconds...
Press Enter to start now!

� Setup Your Game 🍞

🐭 Mice appear at level 5 and higher!
Higher levels include all previous shapes plus new ones.

🎉 Game Complete! 🎉

🏆 Leaderboard 🏆

📦 Packaging Your Sandwiches... 📦

🎁
k→∞ Sandwich Packing
Level 1
Time 0:00
🍞 Pack geometric sandwiches and maximize your area! 🍞
Select a donut to start packing!

📚 Help & Formulas 📚

Area Formulas:

  • Square: A = s² (where s is side length)
  • Rectangle: A = w × h (width times height)
  • Triangle: Use Heron's formula:
    A = √[s(s-a)(s-b)(s-c)] where s = (a+b+c)/2
    (a, b, c are the three side lengths)
  • Parallelogram: A = b × h
    (b is base, h is height)
  • Trapezoid: A = ½(b₁ + b₂)h
    (b₁, b₂ are the two parallel bases, h is height)
  • Circle: A = πr² (where r is radius)
  • Ellipse: A = πab
    (a and b are semi-major and semi-minor axes)
  • Donut Ring: A = π(R² - r²)
    (R is outer radius, r is inner radius)

Game Tips:

  • Choose your level wisely - higher levels have more shapes!
  • Calculate each sandwich's area using the dimensions shown
  • Pack efficiently to maximize total area
  • 🐭 Watch out for mice at level 5+ - they reduce your score!
  • Remember to subtract mouse bites (area = 1 each) from your total
  • Use rotation to fit sandwiches better in corners

Controls:

  • Arrow keys (↑↓←→) to move the selected sandwich
  • < and > keys to rotate the selected sandwich
  • Click a sandwich in your pile to select it
  • Click a sandwich in the box to select it for moving or returning