Flocking - Autonomous Agents with GitHub Copilot
Autonomous Agents with GitHub Copilot

🎯 Goal
🔧 Step 1: Setup Your Environment
✅ Install VS Code
✅ Install GitHub Copilot Extension
✅ Install p5.js Extension
✅ Setup P5 server in VSCode
🏋 Step 2: Copilot warmup
🐦 Step 3: Flocking start
✅ Download the Starter Template
Test the template
Compare boid.js with our mover.js
🤖 Step 3: Use Copilot to Help You Code
🧠 Tip: Trigger Copilot with Comments!
🌀 Step 4: Iterative Development
🥚 Iteration 1: Draw Points
🐣 Iteration 2: Add Alignment
🐥 Iteration 3: Add Cohesion
🐔 Iteration 4: Add Separation
💡 Hint:
✨ Bonus Assignments for Advanced Students
🌈 1. Draw Triangles Instead of Points
🧪 2. Show Debug Circles for Perception Radius
🐺 3. Add a Predator
🎛️ 4. Add Sliders to Tune Parameters
🎨 5. Color by Speed or Acceleration
📘 Wrap-Up
🧠 Copilot Cheat Sheet for Flocking (Prompts as Comments)
Last updated

