Lesson 5

Build an AI Object Hunt Game

Mission: Turn recognition ideas into a playable hunt with clues, scoring, and fair tests.

Mission Introduction

Students create a small object hunt where players find classroom-safe items that match clues. The focus is on clear rules, testing, and improving gameplay.

What You Will Learn

  • How clues and object rules create a game goal.
  • How to test examples that should pass and examples that should fail.
  • Why clear scoring makes a game feel fair.
  • How to improve instructions after a friend tests the game.

Key Words

  • Game rule
  • Clue
  • Object
  • Match
  • Score
  • Debug

Quick Multiple-Choice Challenge

Teacher Demo

The teacher demonstrates one object clue, one successful match, one non-match, and one rule update after testing.

Open CodeHS Starter Code

Open the starter program, sign in if required, fork or copy the program, and return to this page for the tasks.

Open CodeHS Starter Code

Task Checklist

Hints

What is a safe hunt theme?
Use objects that are already allowed in class, such as stationery, colors, shapes, or learning materials.
How can I make scoring fair?
Tell players exactly what earns a point before they start.

Testing Challenge

Ask a partner to play one round. Watch where they get confused, then improve one clue or rule.

Boss Challenge

Your game should include clear clues, fair scoring, safe object choices, and at least one improvement based on player testing.