
Technology • 7th Grade • 60 • 25 students • Created with AI following Aligned with Common Core State Standards
Free PDF · we'll email you a copy
Create a complete, engaging 60-minute middle school computer science lesson for Grade 7 titled 'Algorithms and Debugging: Designing a Rock-Paper-Scissors Program.' Assume 25 students and mixed prior experience. Students should learn to define an algorithm, decompose a problem into steps, use conditional logic/pseudocode, identify and fix bugs, and explain how testing improves a solution. Include: learning objectives and success criteria; a brief teacher hook; explicit instruction with accessible examples; an unplugged pair activity where students write and test pseudocode for rock-paper-scissors; a debugging challenge with intentionally flawed pseudocode; optional extension into Scratch or Python; differentiation for multilingual learners, students needing support, and advanced students; formative assessment questions; exit ticket; materials; vocabulary; classroom management and digital citizenship notes; and an answer key/model responses. Align to Common Core Mathematical Practices MP1 (make sense of problems and persevere) and MP7 (look for patterns and structure), noting that Common Core does not contain dedicated computer science standards.
Students design and test an algorithm for a digital rock-paper-scissors game without initially using computers. They decompose the game into steps, represent decisions with conditional pseudocode, identify bugs, and explain how repeated testing improves a solution. The lesson assumes mixed prior experience and serves 25 students working in pairs.
Students will be able to:
0–5 min · Hook. Open with the introduction and hook slides and silently display: “Can a computer play fairly if we do not tell it every rule?” Teacher plays one quick round against a student, intentionally declares an incorrect winner, and asks what information is missing. Students identify the choices, rules, and possible outcomes.
5–15 min · Explicit instruction. Use the algorithm and conditional-logic slides to model an algorithm for making a sandwich, then connect it to rock-paper-scissors: identify inputs (player and computer choices), processing (compare choices), and outputs (winner or tie). Teacher models: “Get player choice. Get computer choice. If choices are equal, report tie. Else if player has rock and computer has scissors, report player wins … otherwise report computer wins.” Students annotate the algorithm planning and pseudocode worksheet and answer: “What would happen if we forgot the tie rule?”
15–28 min · Pair algorithm design. Distribute the algorithm planning and pseudocode worksheet to pairs. Partner A writes pseudocode using clear steps and conditional language; Partner B checks that every possible pair of choices is addressed, then partners switch roles. Students may use the structure “If…, else if…, otherwise…” but must explain each decision in their own words.
28–40 min · Unplugged testing. Pairs test their pseudocode by acting as the player and computer, using paper choice cards or hand signals. They run at least six test cases: three wins, two losses, and one tie, recording the expected and actual result on the test-case table. Teacher circulates and asks, “Which input did you test?” “What pattern do you notice?” and “Does the result make sense?” Students revise any unclear or incomplete step.
40–52 min · Debugging challenge. Display the intentionally flawed pseudocode on the debugging challenge slides: “If player = computer, report tie. Else if player = rock AND computer = paper, report player wins. Else report computer wins.” Pairs use the debugging and revision section to find at least two bugs, create test cases that expose them, and rewrite the algorithm. Invite pairs to explain whether each bug is a logic error, missing condition, or incorrect output. If devices are available, students may implement and test the corrected version in Scratch or Python.
52–60 min · Share and assess. Use the discussion and exit-ticket slides for a brief pair share: “How did testing change your solution?” Students complete the exit ticket on the worksheet: define algorithm, write one correct condition, identify a bug in the challenge, and name one test case that checks a tie. Collect responses as students leave.
Keep pairs seated with one worksheet and establish a “driver/navigator” routine if devices are used. During testing, students must challenge the algorithm, not criticize the person; use specific evidence such as “This test exposes a missing condition.” Remind students not to copy code without understanding it, not to enter personal information into online tools, and to credit shared ideas. Devices remain closed until the teacher gives permission.
Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with Common Core State Standards in minutes, not hours.
Created with Kuraplan AI
Generated using openai/gpt-5.6-luna
🌟 Trusted by 1000+ Schools
Join educators across United States