Type Definition m_ipd::RevealPolicy [−][src]
type RevealPolicy = fn() -> Box<dyn FnMut(Choice, Choice) -> bool>;
Represents a policy that decides how history is revealed.
This type functions much like the Strategy
type; the function is invoked once for each time
IPD is played. The returned closure is invoked once for each round of the game, with the
choices of the players; it should return true of false indicating whether the decisions from
that round should be revealed to the players.