A one-hour, hands-on reinforcement learning workshop that runs entirely in your browser. Write Python. Train a real Q-learning agent. Watch it measurably improve — nothing to install.
Each mission builds on the last. Start with two lines of Python — finish with a self-trained autonomous agent.
Return one action string. Watch the car move. Understand that your code is the agent's entire brain.
choose_action()"ACCELERATE"Use distance readings and track angle to make decisions. State → Action in its purest form.
front_distanceDefine what "good" and "bad" mean for your agent. The AI optimises for exactly what you reward.
reward.pyRun hundreds of episodes. Watch reward charts climb. Replay before vs after. Top the leaderboard.
Every autonomous agent — from your Q-learning car to the latest language model — runs this same cycle. You'll experience it live.
Observe State
Speed, distances, track angle — 6 numbers
Choose Action
Your agent decides: ACCELERATE, TURN, BRAKE
Environment Changes
The car moves, physics update
Receive Reward
+1 per meter, +50 checkpoint, −100 crash
Learn and Improve
Q-table updates, policy gets smarter
# ── STUDENT AREA ────────────────────── # Write your agent logic here def choose_action(state): speed = state["speed"] front = state["front_distance"] left = state["left_distance"] right = state["right_distance"] if front < 30: return "BRAKE" if left < 15: return "TURN_RIGHT" if right < 15: return "TURN_LEFT" return "ACCELERATE"
At the end of the workshop, every team's trained agent is scored on track completion, reward, and driving efficiency. The leaderboard updates live.
Score: completion 40% · reward 35% · collisions 25%
Open the workshop in your browser and you're training your first agent in under five minutes. No accounts. No installs. Just Python.
Get Started