carykh / PrisonersDilemmaTournament

Watch This Place's awesome video about iterated Prisoner's Dilemma for context! https://www.youtube.com/watch?v=BOvAbjfJ0x0
MIT License
205 stars 160 forks source link

Releasing results.txt in order to simulate different metas #94

Open tesslovescode opened 3 years ago

tesslovescode commented 3 years ago

I think it would be interesting if we could look at results.txt and run it through the tool I wrote to simulate different metas. Ppl might be interested to see how they did if the meta had been different.

duckboycool commented 3 years ago

The results.txt isn't very convenient to parse, but 5 rounds worth of the raw results matrix can be found here. This still includes cheating strategies.

Also, you're going to want to use the finalRoster.txt file if you want to know which strat each index is (they're in order of index) since strats removed before the rounds started are not included.

tesslovescode commented 3 years ago

So, just to make sure I understand you correctly, the line at which s# appears in finalRoster.txt is the actual s# that's listed in the raw results matrix?

tesslovescode commented 3 years ago

The results.txt isn't very convenient to parse, but 5 rounds worth of the raw results matrix can be found here. This still includes cheating strategies.

Agreed. But I've already gone through the inconvenience of parsing results.txt assuming it would be the final output format

duckboycool commented 3 years ago

So, just to make sure I understand you correctly, the line at which s# appears in finalRoster.txt is the actual s# that's listed in the raw results matrix?

Yes, you can use .split('\n') to generate a list, then .index to get the index of a strategy from its name.