Description Usage Arguments Details Value
Does player
cooperate with the other player on this round of the game?
1 | does_player_cooperate(player, previous_round)
|
player |
tbl row of the player whose cooperation we are checking |
previous_round |
tbl of the previous round of the game |
Uses a version of forgiving tit-for-tat. Basic strategy is to copy the partner's previous move, but with a chance to change. Where the partner cooperated, players defect based on their sneakiness. Where the partner defected, players cooperate based on their forgivingness.
logical of T = cooperate, F = defect
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.