Volcano Bookmark Cart
The volcano mine has a LOT of crystals, but the little cart only holds three. How does the cart remember where it stopped? With a bookmark!
π§ Before we start
Pizza Debounce Doorbell taught us to wait. Today the computer learns to take a big list a small page at a time. This is called paging. A bookmark (a cursor) marks the last crystal delivered, so the next trip starts right after the bookmark, even if new crystals pop up at the front.
Build the bookmark program
Tap the blocks in the right order so the cart never forgets where it stopped.
Page through the mine
Tap the cart button again and again. Watch the π bookmark jump forward after every trip. Keep going until the last trip.
New crystals at the front!
The cart delivered 3 crystals. While it was away, the volcano made 2 NEW crystals at the front of the line. Try both ways to resume and see what happens.
Go on, start over, or stop?
Pick the best move for each mine problem.
π What you learned
- Paging means taking a long list a small piece at a time.
- A bookmark (cursor) remembers the last item you finished.
- The next page starts right after the bookmark.
- Counting from the front can repeat items when new ones arrive; a bookmark does not.
- A short page means the list is finished, so stop.