Coding

Make a game move.

Plan the moves, run your code and fix it when it goes wrong. That’s what game makers do every day.

Try the challenge
A blue clay laptop showing colourful blocks of code.

Get the builder to the ferry

  • TimeAbout 10 minutes
  • You needJust this page. No computer? Use squared paper (see below).
  • GoalMake a list of arrow steps that gets the builder onto the ferry without bumping into anything.

Start here: a short route with one crate in the way.

  • Builder
  • Ferry
  • Crate or rock: blocked

1. Add arrow steps
2. Your code

    Click a step to remove it. Tip: on a keyboard, tab to an arrow and press the arrow keys.

    3. Run it

    How it works: sequences and debugging

    A sequence is a list of instructions in order. A computer follows them exactly, one at a time. It can’t guess what you meant, so the order matters.

    Example: → ↑ → → ↓ → gets the builder round the crate. Swap the first two steps (↑ →) and the builder takes a different path.

    Debugging means finding and fixing mistakes. Run your code, spot the first step that went wrong, change it and run again. Every coder does this, all the time.

    No computer? Try it on squared paper

    1. Draw a grid 5 squares wide and 3 tall. Mark the builder (B), a crate (X) and the ferry (F).
    2. Write your arrows on a strip of paper.
    3. A friend moves a counter, following your arrows exactly.
    4. If it bumps into the crate, find the wrong arrow, fix it and try again. Then swap jobs!
    Squared paper with a 5 by 3 grid. B marks the builder on the left, X a crate in the middle and F the ferry on the right. Underneath, a paper strip shows the arrows right, up, right, right, down, right. BXF → ↑ → → ↓ →

    Make your own: a one-screen game

    Design a game that fits on one screen, with one goal and one thing in the way.

    1. Pick a goal

      Reach the ferry, collect a star or get home before dark.
    2. Add an obstacle

      A wall, a river or a crate the player has to get round.
    3. Choose the controls

      Arrow keys, clicks or buttons. Write them down.
    4. Test and debug

      Ask a friend to play. Fix the first thing that goes wrong.

    Make it on paper, in Scratch, or in any tool you use at school.

    Harder version

    Make the obstacle move, or add a timer so the player has to hurry. What new bugs appear? How do you fix them?

    Games start small and grow one change at a time. Here’s one that’s still being built.

    A voxel-style river scene in Ironbridge Gorge: two yellow ferries sail past red-brick houses towards the iron bridge.
    CodingWork in progress

    Severn Scramble: Ironbridge Ferry Run

    A game set in Ironbridge Gorge. It’s still being built: the map, the ferries and the rules are being tested and fixed bit by bit.

    See the project and play it

    Loading projects…