Assignment 4

Assignment 4

autor Petra Vysušilová -
Počet odpovědí: 1

Hi, 

I'd like to ask, how exactly Prisoner's dilemma class  work, because I was'n attend last lab.

 

So where the method reset is called? Is it that case, that I play some episodes with one strategy, than with other, or is it just switching randomly between all strategies ?

Thanks, 

Petra

V odpovědi na Petra Vysušilová

Re: Assignment 4

autor Martin Pilát -

Hi, 

you always play one full game (e.g. 100 iterations) of the iterated prisoner's dilemma against a fixed strategy, after the game finishes, the reset method is called before you play against another strategy. You can play against the same strategy multiple times, but in principle you go not know it is the same strategy, just that you play a new game.

 

For example, assume that one game of iterated prisoner's dilemma is 100 iterations. You play 100 iterations against strategy A, reset is called, you play 100 iterations against a strategy B, reset is called, and so on. B can be in principle the same strategy as A.

Does it make sense now?

Have a nice day, 
Martin