Description Usage Arguments Details
View source: R/PrisonersDilemmaStratTourn.R
Each strategy within the game.object plays against a random strategy of the given defection probability
| 1 | Memory.Random.Play.PD(game.object, algo.par)
 | 
| game.object | as specified by Get.Game.Object | 
| algo.par | as e.g. given by Get.Def.Par.QLearning | 
Outputs List of lists with the following elements:
state - Already encoded game state, if algo.par$mem.type=="game.encoded"
action - Which of the actions has been taken?
next.state - resulting next, encoded, state
reward - What did we get from transitioning to the next state?
done - Boolean; is the game over?
Public Function which might be called by algorithms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.