Treasure Map Grid Game: An Unplugged Coding Activity for Kids

Kids playing the treasure map grid game
KidsKod original illustration.

Did you know you can learn to think like a programmer without a single screen? In this unplugged coding game, one player becomes the Programmer and another becomes the Robot. The Programmer writes a list of arrow commands, and the Robot follows them step by step across a paper grid to find hidden treasure. It is quick to set up, works for ages 5 and up, and is perfect for a rainy afternoon or a family game night. If you love screen-free learning, you might also enjoy our Unplugged Coding Activities for Kids.

What you need

  • A large sheet of paper (or 16 sticky notes laid out in a square)
  • A pencil or marker and a ruler
  • A small toy or coin to be the Robot's game piece
  • A sticker, button, or paper star to be the "treasure"
  • 2 or more players (one Programmer, one Robot)
  • Small cards or scrap paper to write commands on

What you will learn

  • Algorithms: a set of clear steps that solves a problem
  • Sequencing: why the order of steps matters
  • Debugging: finding and fixing a mistake in your steps
  • Loops: a shortcut for repeating the same command

Step 1: Draw the treasure grid

  1. Draw a 5 x 5 grid of squares on your paper. Each square should be big enough for your game piece.
  2. Label the columns A to E across the top and the rows 1 to 5 down the side.
  3. Draw a few "rocks" or "lava" squares by coloring them in. The Robot is not allowed to step on them.
  4. Put the Robot's game piece on the start square, A1, facing right.

Step 2: Learn the Robot's commands

Real computers only understand a small set of instructions. Our Robot is the same! Write these commands on your cards:

  • → FORWARD: move one square in the direction you are facing
  • ↻ TURN RIGHT: turn to face right (but stay on the same square)
  • ↺ TURN LEFT: turn to face left (but stay on the same square)
  • ★ DIG: dig for treasure on this square

The big rule: the Robot must do exactly what the cards say, even if it is silly. Computers do not guess what you meant!

Step 3: Hide the treasure

  1. The Robot closes their eyes.
  2. The Programmer places the treasure on any safe square, for example D4.
  3. The Robot opens their eyes and can see the treasure, but must wait for instructions.

Step 4: Write the program

The Programmer lines up command cards in order, from left to right. Here is one example program to reach D4 from A1:

FORWARD, FORWARD, FORWARD, TURN RIGHT, FORWARD, FORWARD, FORWARD, DIG

Tip: point your finger along the grid as you place each card. This is how programmers "trace" their code.

Step 5: Run the program

  1. The Programmer reads each card out loud, one at a time.
  2. The Robot moves the game piece exactly as instructed, using a robot voice for extra fun.
  3. If the Robot lands on the treasure and hears DIG, the program works. Celebrate!

Step 6: Debug the mistakes

Did the Robot walk into lava or dig in the wrong place? Great! That is a bug, and fixing it is a real coding skill.

  1. Go back to the start square.
  2. Run the program again slowly and stop at the exact card where things went wrong.
  3. Swap, add, or remove just that card, then test again.

Step 7: Use a loop to save cards

Writing FORWARD three times takes a lot of cards. Programmers use loops to repeat things. Make a new card called REPEAT 3: FORWARD. Now the program from Step 4 becomes:

REPEAT 3: FORWARD, TURN RIGHT, REPEAT 3: FORWARD, DIG

That is 5 cards instead of 8. Shorter code is easier to read and fix!

Wrap-up and challenge

You just wrote, ran, and debugged a real algorithm, all without a computer. These are the same ideas you will use later in Scratch, Python, and Roblox Studio.

Your challenge: Make a 6 x 6 grid with three treasures and five lava squares. Can you write one program that collects all three treasures using 12 cards or fewer? Swap roles and see who can write the shortest working program!

Previous Post
No Comment
Add Comment
comment url