Section Assignment 6
Build a game, train an agent
Why this assignment
A reinforcement learning agent is never shown the right move. It is only told what earns points, and it learns whatever earns the most, whether or not that's what you meant. Today you watch an agent learn a small campaign game, see what it does when the reward is wrong, and then build and publish your own game and agent.
What to do
| Part | Time | What you do |
|---|---|---|
| 1 · Play | ~2 min | Play Campaign Trail yourself. |
| 2 · Train | ~8 min | Train an agent on it, then change its reward. Record at least 3 runs, including one with TV +5 and one with scandal 0. Answer 2A–2C. |
| 3 · Build | ~20 min | Build your own game and Q-learning agent with your coding agent, try a second reward, and publish it at username.github.io/rl-game/. Tick the checkpoints and answer 3A–3B. |
| 4 · Advise | ~4 min | In 4–6 sentences, advise a campaign that wants to reward an outreach agent for engagement. |
To pass
- The file has your name; at least 3 runs in Part 2, including one with TV +5 and one with scandal 0; a link to your game; and at least 3 of the 4 checkpoints.
- All six questions (2A–2C, 3A–3B, Part 4) have a real attempt. Short is fine; blank is not.
- Your game is your own. You may work in pairs and discuss, but each person builds, publishes and submits their own.
- If your own game doesn't work by the 12-minute mark of Part 3, Plan B on the lab page also passes.
How to submit
- At the bottom of the lab page, press Download my submission.
- On Canvas, open Section 6 lab and upload the file. Or press Copy and paste the text into the text box.
- Submit before you leave section. If your game isn't live yet, paste the link anyway; your TA checks links after section.
If you can't finish in section
Submit what you have before you leave. Late submissions and resubmissions are not accepted. If you missed section, contact your TA.
Privacy
Your name and answers are stored only in your browser until you download them. The lab page doesn't send anything anywhere. Your coding agent's company and GitHub see what you build, and your game is public on your website, so don't put personal information in it.