Grande potere, grande responsabilità · Great power, great responsibility

, , ,

Game: the Square Code (how a computer “sees” a picture)

Illustrazione a fumetti della Famiglia S.T.O.P. intorno al tavolo della cucina mentre gioca con fogli a quadretti: il bambino colora quadretti che formano una casetta, la ragazza colora un albero fatto di quadretti, la mamma legge un cartoncino, il papà alza il pollice, il nonno osserva il disegno con la lente d’ingrandimento, la nonna tiene un libro aperto e il Robottino mostra una tavoletta a quadretti luminosi che formano un cuore.

🎲 Tuesday is game day! Have you ever wondered how a computer “sees” a picture? To a computer, a picture is made of lots of little squares, and the colour of each square is written with numbers. Today we find out with the Square Code: a screen-free game with squared paper and a pencil.

🧒 For Mini Heroes (ages 6-10) · read with a grown-up

Here’s a secret: the pictures on a screen are made of lots of tiny squares, all side by side. They are called pixels.

Each pixel has a colour. The computer remembers the colour of each pixel using numbers. So, to a computer, a picture is a long list of numbers!

An AI that recognises pictures works with these numbers too. It has learned from lots and lots of examples and looks for shapes it knows. Then it makes a guess: “Maybe it’s a house.” A guess is not a certainty: that’s why you are the Pilot, and you take a good look too! 👀

In today’s game, you are the computer: you turn numbers into a drawing… and try to guess what it is before the end!

🧑‍🎤 For Young Heroes (ages 11-17)

The word pixel comes from picture element. When you read that a camera has 12 megapixels, it means it can produce pictures with 12 million pixels.

In the game each square has only one number, 0 or 1, so only two colours are possible. To get more colours, each pixel needs more digits. And the rule must be agreed first: we use 1 = colour in, while the CS Unplugged lessons use 1 = white and 0 = black. Both work, as long as everyone agrees. Does that remind you of the S in S.T.O.P.?

And the AI? In an official tutorial on image classification (you’ll find it in the Sources), the pictures are all resized to the same size and their pixels become a list of numbers (a vector). A deep learning model, already trained on lots of images, processes those numbers and, in the end, the system returns a label with a score: in the example, a picture of a toaster becomes “appliance” with a score of about 0.96. It’s a prediction, not a certainty.

Training a model like this from scratch takes millions of parameters, lots of images with the right label and hundreds of GPU hours. Remember the Sorting Robot? Here too, the AI learns from labelled examples.

👨‍👩‍👧 For Super Parents & Grandparents

In one sentence: to a computer, an image is a grid of pixels, and the colour of each pixel is written with numbers. An AI that recognises images processes those numbers and returns a guess, with a confidence score.

💡 The practical takeaway: when an app tells you what is in a picture, treat it as a guess, not a verdict. Look for yourself (the P in S.T.O.P.) and, if it matters, test it with another source (the T).

A note on the rules: in Italy, Law 132/2025 (Art. 4, paragraph 4) states that access to artificial intelligence technologies by children under 14 requires the consent of whoever exercises parental responsibility. That’s why today’s game is screen-free, and the Mini challenge with an AI chat is for ages 14+ or to do together with you.

And the O in S.T.O.P.: in games with AI, use drawings or pictures of objects, never children’s photos or names.

🎲 The Square Code

Age: 6+, with a grown-up
Time: 25-30 minutes
Players: 2 or more (1 Camera + at least 1 Pixel Painter)
You need: squared paper (big squares are best), a pencil for each Pixel Painter, an eraser, a ruler and a slip of paper to keep track of the stars

  1. Get the grids ready: with the ruler, each Pixel Painter draws the outline of a square 8 squares wide and 8 squares high. If the squares are small, the grown-up can draw an 8×8 grid with bigger squares.
  2. Choose the roles: the Camera has “turned” the drawing into numbers and reads the codes (a grown-up the first time); the Pixel Painters turn the numbers back into a drawing by colouring in.
  3. The Camera picks one of the secret cards below, without saying what the drawing is, and reads row 1 one number at a time, from left to right.
  4. The Pixel Painters colour row 1 of their square, from left to right: 1 = colour the square in, 0 = leave it white. Then move on to row 2, and so on until row 8.
  5. After each row, each Pixel Painter may whisper one guess in the Camera’s ear: “I think it’s…”. A wrong guess is fine: just keep colouring.
  6. On the slip of paper, the Camera notes after which row each player first guessed right, and reveals it only at the end: rows 1-3 = 3 stars ⭐⭐⭐; rows 4-6 = 2 stars ⭐⭐; rows 7-8 = 1 star ⭐.
  7. After 8 rows, show the drawings and check the code row by row: if a square is wrong, fix it together with the eraser.
  8. Play all 3 cards (A, B and C), with a new grid each time. Whoever has the most stars wins (if it’s a tie, you win together). With 2 players, play as a team: can you win at least 5 stars out of 9?
  9. “Your turn” bonus: the Pixel Painter invents a secret 8×8 drawing, you write its code together row by row, and now they are the Camera!

💡 Moral: to a computer, a picture is a grid of numbers. An AI that recognises images looks for shapes in those numbers and makes a guess, just like you during the game. And a guess can be wrong: the Pilot has the last word, so take a good look!

🃏 The secret cards (for the Camera)

Read one row at a time, one number at a time. 1 = colour in, 0 = white. The answers are at the bottom: no peeking!

Card A
Row 1: 0 0 0 1 1 0 0 0
Row 2: 0 0 1 1 1 1 0 0
Row 3: 0 1 1 1 1 1 1 0
Row 4: 0 0 1 1 1 1 0 0
Row 5: 0 1 1 1 1 1 1 0
Row 6: 1 1 1 1 1 1 1 1
Row 7: 0 0 0 1 1 0 0 0
Row 8: 0 0 0 1 1 0 0 0

Card B
Row 1: 0 0 0 1 1 0 0 0
Row 2: 0 0 1 1 1 1 0 0
Row 3: 0 1 1 1 1 1 1 0
Row 4: 1 1 1 1 1 1 1 1
Row 5: 0 1 1 1 1 1 1 0
Row 6: 0 1 1 0 0 1 1 0
Row 7: 0 1 1 0 0 1 1 0
Row 8: 0 1 1 0 0 1 1 0

Card C
Row 1: 0 1 1 0 0 1 1 0
Row 2: 1 1 1 1 1 1 1 1
Row 3: 1 1 1 1 1 1 1 1
Row 4: 1 1 1 1 1 1 1 1
Row 5: 0 1 1 1 1 1 1 0
Row 6: 0 0 1 1 1 1 0 0
Row 7: 0 0 0 1 1 0 0 0
Row 8: 0 0 0 0 0 0 0 0

Psst, grown-ups only: cards A and B start with the same 3 rows. Whoever guesses straight away… takes a risk! That’s exactly what happens when a guess is based on too little information. 😉

Answers: A = tree 🌳 · B = house 🏠 · C = heart ❤️

🔍 Mini challenge

  • More numbers, more colours (screen-free): invent an 8×8 drawing with 3 numbers: 0 = white, 1 = light pencil, 2 = dark pencil. Read it to another player: does the drawing come out the same? You’ve just found out why, to get more colours, each pixel needs more possible numbers.
  • With an AI chat (ages 14+, or together with a grown-up): ask “Write the code for an 8×8 drawing of a fish: 8 rows of 8 numbers, 1 = colour in, 0 = white.” Colour it in: does it really look like a fish? Count: are there really 8 rows of 8 numbers? That’s the T in S.T.O.P.: test it with another source. Never type names or personal data.

📚 Sources


Discover more from AI Hero Lab Family

Subscribe to get the latest posts sent to your email.

🚦 Ricorda il S.T.O.P. Sai cosa stai chiedendo? · Trova una conferma · Occhio ai dati · Pensa tu l’ultima parola.
🚦 Remember S.T.O.P. Say exactly what you need · Test it with another source · Our data stays private · Pilot decides.