Module: lib/strategies/meanie

Tit-for-tat with a twist: if the opponent cooperates, there is a chance equal to SPITE that the strategy will defect anyway, rather than cooperate. A variant on the 'sorry' strategy.

Source:

Members

(inner, constant) SPITE :Number

Type:
  • Number
Default Value:
  • 0.2
Source: