Skip to main content

Week 3 Tutorial: A player with reaction time

Write two simulated players for the specimen, give one of them a reaction time, and compare their win rates over the same seeds.

11 March 2027

Before the tutorial

Bring the prediction the room voted most likely to be wrong in week one. Read the player model section of Isaksen, Gopstein and Nealen.

In the tutorial

Write the simplest policy you can defend: walk towards the nearest experience, step away from anything close. Run it over seeds 1 to 15 (the course’s first fifteen, 97 apart; see the policies) and count the wins.

Then wrap it. The wrapped player asks your policy for a direction only every 150 ms and holds that direction in between. Run the same seeds. If your win count does not drop, your first player was already slow, and it is worth finding out why.

Last 20 minutes: test the prediction you brought. Most of them die here.

Where it goes wrong

What a finished answer looks like

Seeds 1 to 15. No delay: 12 wins out of 15. 150 ms: 1 win out of 15. My week 1 prediction said at least 5 for the delayed player. Wrong.

Afterwards

Both win counts go on this week’s quiz, with the reaction time you settled on and one line on how you chose it.

The spec

What you walk out with. Every line is something the person sitting next to you could check.

Teaching team