Design Your CartPole Solution

W20D2: AI-Assisted Build Lab

Today's Mission: Build a working RL agent in 3 hours
1. Requirements
2. Algorithm
3. Architecture
4. Experiments

Your Mission

Build an AI that learns to balance a pole on a moving cart. You'll design the solution, use AI to help write the code, then test and improve it.

The Goal

Train an agent to score 475+ points by keeping the pole balanced for 100 games in a row.

  • Pole starts upright
  • Cart can move left or right
  • +1 point for each moment balanced
  • Game ends if pole falls or cart goes off screen

The Rules

You're the architect. AI is your developer. You're the quality checker.

  • YOU decide what approach to use
  • AI helps write the code
  • YOU test if it actually works
  • Document everything in your journal

The Timeline

You have 3 hours to complete this challenge.

  • Phase 1: Design (45 min)
  • Phase 2: Build with AI (60 min)
  • Phase 3: Test & Improve (45 min)
  • Phase 4: Document (30 min)