The railway switch, YES or NO: a lesson plan on decisions for grades 1–3
A 45-minute lesson plan for ages 6–9 about decisions in an algorithm: a YES/NO question chooses the way. A railway-switch game on the floor and the Looponi lesson “Presents left, balloons right”. Printable worksheet included.
Updated:
- Grades
- 1–3
- Time
- 45 min
- one worksheet per child
- masking tape or skipping ropes for two tracks
- picture cards of a present and a balloon
- a large STOP card
- a red or blue sheet of paper for each child
- an interactive whiteboard or tablets with Looponi
Open the printable worksheetDownload the worksheet (PDF)Try this lesson

In this lesson children meet a decision: a question answered YES or NO that decides which way to go next. In the movement part they play a railway switch that sends wagons left or right. In Looponi they do the lesson “Presents left, balloons right”: the cat likes presents and balloons, red wagons carry presents and blue ones carry balloons.
Goals
- Children answer the switch's one question with YES or NO.
- Children send a wagon down one of two tracks depending on the answer.
- Children complete both routes so that each one reaches the STOP station.
Lesson outline
1. Unplugged warm-up: YES or NO? (10 min)
Children stand up. When you say “Go!”, everyone marches on the spot like a train. When you say “Stop!”, everyone freezes. After a few rounds, ask questions the class answers with thumbs up (YES) or thumbs down (NO):
- Are you wearing something red today?
- Is it raining?
- Do we cross the road on a red light?
Point out that each of these questions has only two answers. Then add movement: “If you're wearing something red, stand by the window. If not, stand by the door.”
2. A switch on the floor (15 min)
Use tape or skipping ropes to make a track that splits left and right. Put a present picture at the end of the left track and a balloon picture at the end of the right one. Further on, both tracks meet at the STOP card: that's the cat's party.
- Every child gets a red or a blue sheet. That's their wagon.
- A child stands at the fork as the switch and asks one question: “Red?”
- Answer YES: the wagon goes left, to the presents. Answer NO: right, to the balloons. Every wagon ends its ride at STOP.
- Before the next wagon sets off, ask the class: “This wagon is blue. Which way will it go?”
- At the end, count how many wagons went down each track.
If there is time left, let another child be the switch and make up their own YES/NO question.
3. Looponi: “Presents left, balloons right” (15 min)
Open the lesson with the button on this page. At the whiteboard, children come up in turn. On tablets, they work in pairs. The narrator speaks Polish only, so read the short instructions aloud in English.
What happens in the lesson:
- The ticket office asks: which wagon? Red or blue.
- The switch asks: red? YES or NO.
- The child lays a track from YES to the presents and from NO to the balloons, then connects the presents and the balloons to the STOP station.
- The question: “The wagon is blue. Which way will it go?” The child picks YES or NO.
- The red wagon goes left, to the presents.
- The task on a new board: “Lay both tracks: red to the presents, blue to the balloons.”
Before a child picks an answer, let the class vote with their thumbs. Link it back to the game: “Who had a blue sheet on the floor? Where did you go?”
4. Wrap-up (5 min)
- What question did the switch ask? What answers were possible?
- Where does the wagon go when the answer is NO?
- Give a YES/NO question from your day. (“Is it raining? YES: I take an umbrella.”)
Common mistakes and what to say
- The track from YES leads to the balloons. The child mixes up the sides of the switch. Say: “The switch asks: red? Red wagons carry presents. Which way should YES go?”
- The child answers YES for the blue wagon. Say: “The switch asks if the wagon is red. Is blue red?”
- The presents or the balloons aren't connected to STOP. The child finishes one track and forgets the other. Ask: “Run your finger from the balloons. Where does the wagon stop?”
- The floor switch asks two questions at once (“Red and big?”). Say: “A switch asks one question. The answer is YES or NO.”
Easier and harder versions
- Easier: warm up with the lesson “Go… stop!” The child puts the STOP station by the cat and answers YES or NO to whether Dot will get to the ice-cream shop. On the floor, play the switch yourself; children just walk.
- Harder: in pairs, children make up their own YES/NO question and two destinations for the switch, then sort the whole class with it. Before each ride, the pair says which way the next person will go.
Worksheet
On the worksheet children circle where each wagon goes, colour the switch's answer for the blue wagon and draw a track from NO to the balloons; you can download it below this lesson plan.
Open the printable worksheetDownload the worksheet (PDF)Try this lesson
Frequently asked questions
What is a railway switch in Looponi?
A square with one question whose answer is YES or NO. The answer decides which track Dot takes. That is what a decision looks like in an algorithm.
How do you explain a decision in an algorithm to a six-year-old?
With a switch game. One child asks “Red?” and the others go left or right depending on the answer. Then the same idea is built on the Looponi board.
Is this lesson suitable for children aged 6?
Yes. There is one short question and the answers are YES or NO. The app's narrator speaks Polish only, so the teacher reads the instructions aloud in English.