For a teacher with a class? The classroom edition has the full plan, slides and standards.

Homeschooling PDF

Family edition

Football Play Lab: Read the Defense, If and Else Before the Throw

Ages 11-14 ยท about 45 minutes, in one sitting

In Football Play Lab your child programs a flag football quarterback in Blocks that reads the defense and throws to the open receiver.

What you need

Before you start: try it once yourself

Open mytekdev.com/try/footballplaylab?lesson=read-the-defense-if-else-and-the-pre-snap-read&ref=fam-footballplaylab-2. A short guide opens over Level 4, Two receivers. The field fills the middle, seen from high behind the offense: the child's five players in team colors with flag belts, the five defenders in gray. Each player has a chip, C, Q, X, Y and Z, and each chip opens that player's own program in the Blocks and Python tabs. The box on the field says the level's goal and, after each play, what happened and why, with the seconds and the yards. The panel at the bottom right says the time since the snap, where the ball is, and how open the target receiver is.

  1. The starter. X and Y each run 10 yards and stop. Q drops back 3 yards, waits 1.4 seconds and throws to X. C and Z run 20 yards straight. Round 1 doubles Y: a touchdown to X, 35 yards. Round 2 doubles X: knocked away at 3.9 seconds.
  2. Card four. Put these blocks in for me, then Put them in. Q's throw becomes an if and else: if how open X is is more than 2, throw to X, else throw to Y. Both rounds are touchdowns, to X and then to Y.
  3. What the read sees. At the throw, X is open by 4.2 in round 1 and by -1.1 in round 2; Y by -1.1 and 4.8. A negative number means a defender is in front of the receiver or in the ball's way. The panel at the bottom right shows distance in yards, not this number.
  4. Speed. Each play runs in real time. Slower and Speed up, under the field, change the speed; the play button starts the level again from the beginning, with the programs as they are now. The play is the same on every run and every computer, so every child who makes the same change sees the same numbers.
  5. Numbers to expect. The threshold changed: -2 fails round 2 (it throws to the doubled X); 0, 2 and 4 pass both; 5 fails round 1 (X at 4.2 is not over 5, so the ball goes to the doubled Y). Level 5: card four is knocked away at 3.8 s; card five is thrown at 0.6 s and caught at 1.3 s for 5.3 yards. Level 6: card five gains 5.3 against Cover 1 (the level wants 8) and is knocked away against two deep; card six gains 11.8 to X against Cover 1 and scores to Z against two deep.
On Level 6, throwing to Z every time also passes both rounds: 10.7 yards against Cover 1, but with the nearest defender only 1.7 yards away, against 3.2 for card six's X. The level does not force the read; the question of which program to trust is worth asking.

The ideas, in plain words

A quarterback reads the defense twice. Before the snap it looks at how the defenders line up: two deep defenders usually means two deep zones, one means a single safety over man coverage. After the snap it looks at the receivers and throws to the one the defense left open. Nobody is ever hit: a defender who reaches the ball carrier pulls a flag from its belt, and the play is over there. The field and rules are modeled on the IFAF flag football rules for 5 on 5; the app is not affiliated with or endorsed by IFAF or any league.

In the app, open() is a number of yards: the distance to the nearest defender, less 3 when that defender is in front of the receiver or in the ball's way. Comparing it with a threshold turns a look into a decision. deep() counts the defenders lined up 8 yards or more off, before the snap.

Teams at every level study plays with video and data, and the people who do it include coaches, video coordinators, data analysts and the software engineers who build their tools.

Do it together

  1. Open mytekdev.com/try/footballplaylab?lesson=read-the-defense-if-else-and-the-pre-snap-read&ref=fam-footballplaylab-2 together. The quarterback always throws to X. Press play and watch both rounds.

    You'll know it worked when: Round 1 (they double Y) is a touchdown to X. Round 2 (they double X) is knocked away at 3.9 seconds.

  2. In the box press Put these blocks in for me, then Put them in. Press play.

    You'll know it worked when: Both rounds pass: the ball goes to X in round 1 and to Y in round 2.

  3. Click the Q chip, open Blocks, and change the 2 in the condition to 5. Play. Then try 4, 0 and -2.

    If you get stuck: The 2 is in the comparison block inside the if.

    You'll know it worked when: 0, 2 and 4 pass both rounds; 5 fails round 1 and -2 fails round 2.

  4. Put the 2 back, open Levels and pick Level 5. Press play, then try card five.

    You'll know it worked when: With a rusher coming, the read throws too late and is knocked away; card five's quick slant is caught at 1.3 seconds.

  5. Go on to Level 6 and try card five, then card six.

    You'll know it worked when: Card five gains too little against Cover 1 and is knocked away against two deep; card six counts the deep defenders and passes both.

Talk about it

Ask these while you work together. A child who has understood it can answer them without help:

The third question is the one that matters. A child who says "X was open by about 4, which is not more than 5, so it threw to Y, who was doubled" can trace the program. A child who says "5 is too big" has the result but not the idea.

For younger and older kids

Younger: For a younger child, stop after the thresholds on Level 4, and talk about what each number did.

Older: For an older child, open Python and read card four as an if and an else, then try Level 9.

Keep going

Bring it into other subjects

For your records

Ready to copy into an hour log, a portfolio or a transcript.

LessonFootball Play Lab: Read the Defense, If and Else Before the Throw
SubjectsComputer science
Time45 minutes
What we didProgrammed a simulated flag football quarterback in Blocks: added an if and else that reads how open a receiver is, tested its threshold in two rounds, and read the defense before the snap to choose a route.
Skills practicedConditionals; Testing a program; Reading inputs

Football Play Lab: Read the Defense, If and Else Before the Throw

Activity sheet (optional)

Name: ______________________________ Date: ______________

Open the app: scan the QR code, or go to mytekdev.com/try/footballplaylab?lesson=read-the-defense-if-else-and-the-pre-snap-read

Essential question: How can a program make the right choice when it does not know what the defense will do?

Warm-up: Two friends, one guarded twice. How do you decide who gets the pass? ________________________

  1. Vocabulary. Condition, if and else, threshold, double, rusher, pre-snap read: write each in your own words.
  2. Always X. Round 1: ________. Round 2: ________.
  3. My threshold table. For each number, which rounds pass? -2: ________. 0: ________. 2: ________. 4: ________. 5: ________.
  4. Levels 5 and 6. Card four on Level 5: ________. Card five on Level 6: ________. Card six on Level 6: ________.

1. Why does the if and else pass both rounds when always throwing to X does not?

2. Throwing to Z every time also passes Level 6. Which program would you trust, and why?

Quick check

Name: ______________________________

1. A program says: if X is open by more than 2, throw to X, else throw to Y. X is open by 1. The ball goes to: (A) X (B) Y (C) nobody

2. deep() is read before the snap because: (A) it is faster (B) the defense shows its coverage as it lines up (C) the ball is not ready

3. A friend's play works against one defense and fails against another. Use what you learned today to say what to add, and why.

Answers

QuestionAnswerWhy
1B1 is not more than 2, so the else runs.
2BHow many defenders line up deep tells Cover 1 (1) from two deep (2) before anyone moves.
3Open answerAn if and else that reads the defense, so the program picks the route or receiver that beats each one; then test it against both.

If your state or umbrella school asks, this lesson covers CSTA 2017 2-AP-12, CSTA 2017 2-AP-17.