egttools.behaviors.CPR.cpr_strategies.FreeStrategy

class FreeStrategy[source]

Bases: AbstractCPRStrategy

Methods

get_extraction

rtype

float

get_payoff

rtype

float

is_commitment_validated

rtype

bool

proposes_commitment

rtype

bool

type

rtype

str

would_like_to_commit

rtype

bool

__str__()[source]

Return str(self).

Return type

str

get_extraction(a, b, group_size, commitment=False)[source]
Return type

float

static get_payoff(a, b, extraction, group_extraction, fine=0, cost=0, commitment=False)[source]
Return type

float

is_commitment_validated(nb_committers)[source]
Return type

bool

proposes_commitment()[source]
Return type

bool

type()[source]
Return type

str

would_like_to_commit()[source]
Return type

bool

__abstractmethods__ = frozenset({})
__annotations__ = {}
__slots__ = ()