Family edition
Football Play Lab: Read the Defense, If and Else Before the Throw
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
- A computer or Chromebook with a current browser.
- The link: mytekdev.com/try/footballplaylab?lesson=read-the-defense-if-else-and-the-pre-snap-read&ref=fam-footballplaylab-2. No account, no email and nothing to install.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
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
- 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.
- 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.
- 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.
- 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.
- 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:
- Why does always throwing to X fail in round 2?
- What question does the if ask, and what happens when the answer is no?
- Why does a threshold of 5 fail round 1?
- Why does card four fail on Level 5?
- What does deep() count, and when?
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
- Build card four's if and else from the Logic blocks without the card, then check it passes both rounds.
- On Level 5, change card five's drop from 1 yard to 3. Is it still caught, and for how many yards?
- Go on to Level 9, the progression: a list of receivers the quarterback looks at in order.
Bring it into other subjects
- Math: a reading of -1.1 and one of 4.2. Put both on a number line with the thresholds -2, 0, 2, 4 and 5. Which thresholds split them?
- Physical education: practice a two-receiver read. The quarterback says "X" or "Y" aloud before throwing.
- Careers: look up what a sports data analyst does with player tracking data.
- Computer science: write the read as a flowchart with one diamond and two arrows.
For your records
Ready to copy into an hour log, a portfolio or a transcript.
| Lesson | Football Play Lab: Read the Defense, If and Else Before the Throw |
|---|---|
| Subjects | Computer science |
| Time | 45 minutes |
| What we did | Programmed 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 practiced | Conditionals; 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? ________________________
- Vocabulary. Condition, if and else, threshold, double, rusher, pre-snap read: write each in your own words.
- Always X. Round 1: ________. Round 2: ________.
- My threshold table. For each number, which rounds pass? -2: ________. 0: ________. 2: ________. 4: ________. 5: ________.
- 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
| Question | Answer | Why |
|---|---|---|
| 1 | B | 1 is not more than 2, so the else runs. |
| 2 | B | How many defenders line up deep tells Cover 1 (1) from two deep (2) before anyone moves. |
| 3 | Open answer | An 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.