egttools.behaviors.CRD.AbstractCRDStrategy

class AbstractCRDStrategy(self: egttools.numerical.numerical.behaviors.CRD.AbstractCRDStrategy)

Bases: pybind11_object

Methods

get_action

Returns an action in function of time_step round and the previous action action_prev of the opponent.

type

Returns a string indicating the Strategy Type.

__init__(self: egttools.numerical.numerical.behaviors.CRD.AbstractCRDStrategy) None
__new__(**kwargs)
get_action(self: egttools.numerical.numerical.behaviors.CRD.AbstractCRDStrategy, time_step: int, group_contributions_prev: int) int

Returns an action in function of time_step round and the previous action action_prev of the opponent.

Parameters
  • time_step (int) – Current round.

  • group_contributions_prev (int) – Sum of contributions of the other members of the group (excluding the focal player) in the previous round.

Returns

The action selected by the strategy.

Return type

int

type(self: egttools.numerical.numerical.behaviors.CRD.AbstractCRDStrategy) str

Returns a string indicating the Strategy Type.