# D&D.Sci September 2022 Evaluation and Ruleset

This is a followup to [the D&D.Sci post](https://www.lesswrong.com/posts/DKDDT8hGCTz8AxBQF/d-and-d-sci-september-2022-the-allocation-helm) I made ten days ago; if you haven’t already read it, you should do so now before spoiling yourself.

[Here](https://h-b-p.github.io/d-and-d-sci-sep-2022/) is the web interactive I built to let you evaluate your solution; below is an explanation of the rules used to generate the dataset (my full generation code is available [here](https://github.com/H-B-P/d-and-d-sci-sep-2022/blob/main/gen.py), in case you’re curious about details I omitted). You’ll probably want to test your answer before reading any further.

Ruleset
=======

Stats
-----

Each of a student’s five stats – Intellect, Integrity, Courage, Reflexes and Patience – is generated by rolling a d80 four times and picking the second-highest result. There is no correlation between stats, no censorship, and no upper or lower limit on what qualities a student can have.

Ratings, Potential, and Archetypes
----------------------------------

The Ofstev Rating for a given student is given by rolling \[Potential\] four-sided dice, and counting the number of times you roll a four; this can be closely approximated as Poisson(\[Potential\]/4).

Each House has two Archetypes associated with it, which determine how much Potential a student will have if they’re Allocated there. Students in a House always come to embody the Archetype which would grant them more Potential.

### Dragonslayer Archetypes

**Guardians** require a high level of all five stats. Guardians have 5*(min(\[all stats\])-1) Potential.

**Warriors** require Courage and Reflexes; more the former than the latter. A Warrior has 3*min(Courage-9, Reflexes+9) Potential.

### Thought-Talon Archetypes

**Innovators** require a high level for all stats except Reflexes. Innovators have 5*(min(\[all stats except Reflexes\])-3) Potential.

**Scholars** require Intellect and Patience; more the former than the latter. A Scholar has 3*min(Intellect-4, Patience+4) Potential.

### Serpentyne Archetypes

Like Scholars, **Schemers** require Intellect and Patience; unlike Scholars, Patience is more often the limiting factor. A Schemer has 3*min(Patience-7, Intellect+7) Potential.

**Duelists** require Reflexes and Intellect; more the former than the latter. A Duelist has 3*min(Reflexes-8, Intellect+8) Potential.

### Humblescrumble Archetypes

**Organizers** require Integrity and Intellect; more the former than the latter. An Organizer has 3*min(Integrity-6, Intellect+6) Potential.

**Citizens** don’t require anything much, but do benefit from Patience and/or Integrity. A Citizen has 35+max(Patience, Integrity) Potential

Allocations
-----------

When you were first wrought, you made perfect decisions 91% of the time, but glitched out and Allocated randomly for the other 9%. The frequency of glitches has steadily increased, at a rate which has itself steadily increased. Students (and their families) started picking up on this in 1980, and average class size has decreased linearly since then, though the average incoming student remains drawn from the same distribution.

Strategy
========

The Potential for the incoming class given specific Allocations looks like this (optimal choices highlighted):

| Student | Dragonslayer | Thought-Talon | Serpentyne | Humblescrumble |
| --- | --- | --- | --- | --- |
| A   | 85  | **150** | 75  | 120 |
| B   | 45  | 54  | 51  | **60** |
| C   | 50  | 87  | **117** | 81  |
| D   | **78** | 15  | 42  | 58  |
| E   | 54  | 70  | 27  | **75** |
| F   | 72  | 132 | **138** | 89  |
| G   | **90** | 39  | 72  | 67  |
| H   | **75** | 30  | 27  | 55  |
| I   | 25  | 15  | 51  | **60** |
| J   | 30  | **102** | 66  | 65  |
| K   | 78  | 72  | **90** | 64  |
| L   | 42  | 30  | 51  | **88** |
| M   | 81  | 70  | 75  | **100** |
| N   | **75** | 40  | 54  | 61  |
| O   | 20  | **81** | 45  | 58  |
| P   | 15  | 48  | 84  | **89** |
| Q   | **125** | 115 | 90  | 117 |
| R   | 60  | 99  | 72  | **165** |
| S   | 65  | **120** | 99  | 76  |
| T   | 25  | 84  | 75  | **114** |

Leaderboard & Commendations
===========================

*(Let me know if I got your score wrong somehow and I'll edit this.)*

| Player | Average Ofspev Rating |
| --- | --- |
| *Optimal Play* | 24.9 |
| Thomas Sepulchre | 24.825 |
| simon | 24.7625 |
| aphyer | 24.6875 |
| gjm | 24.675 |
| Grey Wolf | 24.625 |
| Yonge | 21.575 |
| DaveEtCircenses | 21.3625 |
| SarahNibs | 21  |
| *Random Play* | 17.83125 |

Congratulations to new (?) player Thomas Sepulchre for taking the top spot. Congratulations also to gjm for reaching a good answer incredibly swiftly, to aphyer for qualitatively analyzing the nature of the Helm's mistakes, and to SarahNibs for her impressive if quixotic progress towards finding analytic solutions (I did *not* expect anyone to figure out that this scenario ran almost entirely on "min(x,y)", *or* to realize that Humblescrumble's treatment of Integrity and Patience was the exception to this rule).

Reflections
===========

Unlike most of my D&D.Sci games, this scenario has no clever trickery, and can be solved with blunt application of ML: the main (intended) challenge for players was converting it into a machine learning problem, and the big twist was that there was no big twist. Pedagogically and philosophically, I wanted to acknowledge the occasions when selection biases and similar distortions *don’t* render automated solutions unworkable; personally and pragmatically, I felt the need to make at least one unusually usual entry before starting on the list of experimental, high-variance, possibly-a-waste-of-everyone’s-time-including-mine games I plan to run next year.

Despite my cornucopia of reasonable reasons, I may have taken such straightforwardness a shade too far. In the name of minimalism, I made Swineboils’ curriculum and amenities remain unchanged through the centuries, and let students be completely unaffected by their House-mates’ qualities and quantities. You may find it overly-convenient that an institution could be that static, or a population that standoffish: my sole excuse is that as a Harry Potter parody, this scenario is implicitly set in the UK. Feedback on this point, and on all other points, is greatly appreciated.