Scratch Challenge (Advanced): Interactive Binary Search Demo
Find any number in a sorted 100-item list in at most 7 comparisons.
Challenge brief
Difficulty: Advanced. Goal: Find any number in a sorted 100-item list in at most 7 comparisons.
Try building a working solution yourself first before checking hints. Even a rough 5-block prototype counts as a great first step!
- Step 1: Set up your sprites and green-flag reset blocks cleanly.
- Step 2: Build the core mechanic described above and test it immediately.
- Step 3: Add one creative twist of your own (sound, speed, score, or second level).
Explore more challenges & references
Mark this challenge completed below once it runs cleanly, then pick your next challenge!
FAQ
What if I get stuck on "Interactive Binary Search Demo"?
Break the goal into two tiny pieces, show your key variables on stage so you can watch them live, and check the Troubleshooting or Recipes hub for that single piece.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.