Sort the Crates!  World 1: Swaps

Task

Loading the game…

In a moment you’ll see the crates and the hero.

Program

0 / 10
    Loading the models…

    Sort the Crates! – a coding game for ages 10–11

    An online coding game about sorting. Numbered crates stand in a muddle, and your child builds a program from blocks that puts them in order. The hero does exactly what the program says: walks along the crates, compares two neighbours and swaps them.

    Ages 10–11: swapping neighbouring crates, the “Repeat” loop, the “If bigger” condition, predicting where a crate ends up after one pass, fixing a program with a mistake and, finally, writing their own sorting algorithm.

    For teachers

    Online practice for the interactive whiteboard, with no login. Children discover that one pass takes the biggest crate to the end of the row, while a small crate moves only one square, so several passes are needed. In the last world one program has to sort three different rows, so it can’t be learnt by heart.

    For homeschooling parents

    Free and without adverts. The task can be heard with the “Read aloud” button. In the first world the fewest swaps earn a star next to the task number. Completed tasks stay in the browser, and “Start over” clears them, which helps when two children play on one computer.

    Good for: ages 10–11 (UK Year 6, US Grade 5), computing – sorting algorithms, loops and conditions.

    All exercises and texts are our own.

    All games