POLISCI 158 · Section 6

Section Assignment 6

Build a game, train an agent

Graded: Pass / No-Pass Due: at the end of your Section 6 meeting Submit: one file (or pasted text) on Canvas, with your game's link
Open the lab

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

PartTimeWhat you do
1 · Play~2 minPlay Campaign Trail yourself.
2 · Train~8 minTrain 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 minBuild 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 minIn 4–6 sentences, advise a campaign that wants to reward an outreach agent for engagement.

To pass

How to submit

  1. At the bottom of the lab page, press Download my submission.
  2. On Canvas, open Section 6 lab and upload the file. Or press Copy and paste the text into the text box.
  3. 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.