Lenny.com
Explore
Create
ActivitiesNewMathEnglish Language ArtsScience & EngineeringSocial StudiesGlobal LanguagesHealth & Physical EducationSpecial EducationCounseling & Life SkillsArts & CreativityESL
Lenny.com
Lenny.com
Explore
Create
ActivitiesNewMathEnglish Language ArtsScience & EngineeringSocial StudiesGlobal LanguagesHealth & Physical EducationSpecial EducationCounseling & Life SkillsArts & CreativityESL
Lenny.com
Lenny.com

Solutions

Lenny for EducatorsLenny for SchoolsLenny for Districts

Product

ExploreSign inCreateSupportAbout

Resources

Getting startedMTSS Acceleration Program

© 2026 Lenny Learning Inc.

TermsPrivacyAccessibility
LinkedInInstagramX
Lenny
Science & EngineeringLife ScienceLiving ThingsAnimalsPlantsBody SystemsTraitsAdaptationsCellsEcosystemsHeredityGenes to TraitsCell DivisionPhysicsComparing MaterialsShapes and PropertiesMagnetsMagnetismLightSoundLight and SoundMatterStates of MatterChanges of StateMixturesPhysical and Chemical ChangeHeating and CoolingHeat and Thermal EnergyEnergyForce and MotionElectrical CircuitsAtoms and MoleculesPeriodic TableMotion in One DimensionMotion in Two DimensionsScalars and VectorsForces and Laws of MotionCircular Motion and GravityMomentum and ImpulseWork, Energy, and PowerWavesElectromagnetic WavesGeometric OpticsElectricity and MagnetismSimple Harmonic MotionThermodynamicsNuclear PhysicsEarth Science & AstronomyWeatherWater CycleRocks and MineralsFossilsEarth's FeaturesEarth's ResourcesEarth's StructureWeather and ClimateEarth EventsFossils and Geologic TimePlate TectonicsHuman ImpactsAstronomyChemistryUnits and MeasurementAtomic StructurePeriodic TrendsChemical BondingNomenclatureMolecular StructureIntermolecular ForcesThe MoleStoichiometryProperties of GasesSolutionsChemical ReactionsBalancing EquationsEnergy ChangesRates of ReactionsEquilibriumAcids and BasesQuantum ModelBiologyClassificationCell StructureThe Chemistry of LifeBiomoleculesCellular TransportCell EnergyCell Growth and DivisionDNAProtein SynthesisMeiosis and Sexual ReproductionPatterns of InheritanceMulticellular OrganismsEvolutionEcologyBiodiversityComputer ScienceAlgorithms and Computational ThinkingProgramming LanguagesComputing SystemsNetworks and InternetData AnalysisCybersecurityAI and Machine LearningSoftware Design and DevelopmentBlockchainEngineering & AIDesigning ExperimentsEngineering PracticesDesign ThinkingEngineering Design ProcessMechanical EngineeringElectrical EngineeringMaterials and StructuresCAD and 3D DesignRoboticsArtificial Intelligence BasicsVibe CodingMachine LearningAI Ethics and SocietySystems ThinkingEntrepreneurship & InnovationEntrepreneurial MindsetBusiness Idea DevelopmentBusiness Plan BasicsMarketing & Customer DiscoveryFinancial Management for Startups

State Machine Maze

A comprehensive computer science unit where 4th and 5th graders explore finite state machines by designing UI flows, video game logic, and automated systems. Students master states, triggers, and legal transitions while engineering guardrails against software bugs.

JGJulie Gonzales

State Machine Maze

A comprehensive computer science unit where 4th and 5th graders explore finite state machines by designing UI flows, video game logic, and automated systems. Students master states, triggers, and legal transitions while engineering guardrails against software bugs.

JGJulie Gonzales

What is an Illegal Transition?

When an event happens that has NO ARROW pointing to any new state. The software must REJECT the input!

The Glitch (No Guardrail)

A player presses JUMP while falling into a pit. If the state machine allows jumping anytime, the player "air jumps" forever!

RESULT: Broken Game

The Guardrail (FSM Logic)

State is FALLING. The machine only has transitions for TOUCH GROUND or RESPAWN.

RESULT: JUMP Rejected Safely


Studio Challenge // Mission

Your Turn: Build a State Maze!

01 // SELECT

Pick Your System

Arcade Boss Battle, Smart Soda Machine, or Mars Rover Autopilot.

02 // NODES

Draw 4–5 States

Use circular nodes. Mark which state is the starting point with a double circle!

03 // ARROWS

Map Transitions

Connect nodes with directed arrows and label what event triggers each move.

04 // GUARD

Add Guardrails

Define at least 1 illegal move that your system will safely block!

Get your State Maze Project Packet ready. System blueprints start now! Time Limit: 25 Minutes


Quality Assurance // Testing

The QA Stress Test: Try to Break It!

A

Place Your Token

Put an eraser or coin on your partner's START state. You are now the computer processor!

B

Chaos Input Run

Fire rapid commands at the machine. Follow the arrows. If there is no arrow, call out: "REJECTED!"

C

Bug Patching

Did the token get trapped in a dead-end with no way out? Help your partner draw a new transition path!

Great software engineers don't just write code—they design unbreakable state logic before writing a single line!

Tip: Make sure every node has at least one legal arrow entering and one exiting! NO ORPHAN NODES

5 Transition Rules Matrix (Map the Logic Paths)

Match arrows to rules

Origin StateTrigger Event / InputDestination StateSystem Action / Sound / Screen

Step 6: Software Guardrail (Blocking Illegal Transitions)

Bug Defense

Describe one illegal move a user or glitch might try in your system. What state is the machine in, what unauthorized input did they try, and how does your state machine safely reject it?

The State Machine Maze • Engineering Document Pass to QA Tester for Bug Audit

Partner Verification Checklist

1. The Start Node Test

Placed token on START state and verified that the machine boots up into a legal mode.

2. No Dead-End Trap

Traced every single node. Confirmed that every non-terminal state has an exit transition arrow.

3. The Chaos Input Test

Pressed an unauthorized button. The architect successfully declared "INPUT REJECTED!"

Teacher Notes & System Engineering Commendation

Feedback & Next Steps

The State Machine Maze • Engineering Rubric & Verification Protocol CSTA Standards: 1B-AP-10, 1B-AP-15

You might also like

Helix Studio Slides

Candy Code Sequence

A multi-day competency-based biology sequence exploring DNA architecture, complementary base pairing, and semi-conservative replication through tactile candy modeling and evidence-based assessment.

TM

Teri Minami

6
Regents Life Science Chemistry Exam

Chemistry of Life

A foundational unit exploring the chemistry of life, chemical reactions in living organisms, conservation of matter, and organic compounds.

JE

Jeffrey Elterman

3
Ancient Energy Reading Worksheet

Ancient Energy Reading Worksheet

A two-page printable reading comprehension worksheet featuring multiple-choice, true-false, structured short-answer, and opinion trade-off questions based on the Fossil Fuels text.

EG

Emily Gianni

Pest Spotters Slides

Bug Busters

A hands-on, highly visual science sequence designed for lower-literacy 5th grade learners to identify common nuisance insects, master foundational vocabulary, and discover pest habitats and attractants.

A

amy_oshea

9
Canal Crafters Slides

Canal Crafters

A hands-on STEM and ancient history lesson where students build clay and straw irrigation systems to transport water across trays, connecting engineering challenges to Mesopotamian civilization.

K

Katherine.Land

3
Answer Key - Regents Life Science Chemistry Exam

Answer Key - Regents Life Science Chemistry Exam

Teacher scoring guide and complete answer key for the Regents Life Science Chemistry Exam, featuring full answers, scoring criteria, and explanations for parts I through IV.

JE

Jeffrey Elterman

Pesky Biters Slides

Bug Busters

A two-part fifth-grade science sequence investigating how insects can be annoying nuisances, bite and sting, and damage crops and homes. Specially scaffolded with high-visual supports, decodable text chunks, and guided practice for lower-literacy learners.

Lenny Avatar
Lenny
11
Atmosphere Alert Reading Passage

Pressure Patrol

A focused middle school earth science lesson examining atmospheric air pressure, barometric trends, wind formation, and storm systems. Students explore core meteorological concepts through an informational reading passage, diagrams, and comprehension checks.

CP

Christian Page

2
Regents Chemistry Spanish Exam

Regents Chemistry Spanish Exam

Spanish translation of the two-page Regents Life Science Chemistry Exam covering academic vocabulary matching, official verbatim NYS Regents multiple-choice questions, an atom conservation table, and constructed response prompts.

JE

Jeffrey Elterman

Habitability Blueprint Slides

Life Beyond Limits

A one-week interdisciplinary astrobiology sequence investigating Earth's habitability, extreme biological adaptations across eleven Earth species, and the plausibility of life on other celestial bodies.

M

Megan.Tanner

7
Science Speak Slides

Science Speak

A complete instructional unit focused on mastering scientific vocabulary, Greek and Latin root deciphering, and Claim-Evidence-Reasoning communication frameworks. Students learn to translate everyday observations into rigorous scientific discourse and structured technical writing.

KH

Kyu Hj

4
Regents Life Science Chemistry Exam

Regents Life Science Chemistry Exam

A standardized two-page Regents Life Science Chemistry Exam covering academic vocabulary matching, official verbatim NYS Regents multiple-choice items, an atom conservation tally table, and constructed response questions.

JE

Jeffrey Elterman