Idea · Sep 7, 2026

Behavior Tree Lab

Students build a browser-based behavior tree editor and animated runtime debugger for game AI, learning how NPCs reason by constructing the reasoning system from scratch.

What it would do

Behavior Tree Lab is a multi-week web capstone where students implement a complete behavior tree engine: node types (sequence, selector, decorator, action leaf), a JSON schema for tree definitions, and an animated runtime that highlights which node is currently being evaluated, why it succeeded or failed, and which world-state flags drove the decision. Students design a game scenario (a guard patrol, a monster hunt), author their tree in a visual drag-and-drop editor, and watch it execute against a live 2D canvas game board. A 'sabotage mode' lets teams inject adversarial world-state mid-run to find holes in their tree's logic. JSON import/export lets teams share and critique each other's designs.

Key features

  • Visual drag-and-drop behavior tree editor with a node type palette
  • Animated runtime with per-node success/failure badges and world-state inspector
  • JSON import/export for sharing and peer-critiquing tree designs
  • Sabotage mode: inject arbitrary world-state during a live run to stress-test the tree
  • Mini 2D canvas game board showing the NPC acting on tree decisions in real time

More in Games & Puzzles

Four Ghosts, Four Targets

A browser Pac-Man maze that draws each ghost's live target tile and decision rule, so you can watch the 1980 arcade AI think, including Pinky's famous overflow bug.

BuiltGames & PuzzlesProduct for a businessOct 9, 2026

Code Review Gauntlet

An infinite-supply browser game where you race to spot bugs, security holes, and code smells in AI-generated code snippets before the timer runs out and the AI reveals everything you missed.

BuiltGames & PuzzlesProduct for a businessAug 11, 2026

Game Feel Lab

A browser-based sandbox assignment where game development students adjust twelve 'game feel' parameters — squash-and-stretch, screen shake, coyote time, particle bursts, audio pitch variation — on a minimal 2D platformer and run a blind user study to test whether their parameter choices predict the subjective player experience.

Games & PuzzlesClass assignmentLargeAug 8, 2026

Concept Duel Arena

A real-time multiplayer classroom game where students race to build accurate concept maps for CS topics, with an LLM validating every connection live and revealing class-wide misconceptions at the end.

Games & PuzzlesTeaching toolMediumJul 28, 2026

All 41 ideas in Games & Puzzles →