Crate t4t_games

source ·
Expand description

This library provides example games and strategies implemented using the tit-for-tat (t4t) library.

The games are organized into modules, which define several related games and strategies for playing them. The top-level documentation for each module provides a more detailed overview.

§Dilemma games (dilemma)

This module includes a collection of 2x2 symmetric normal-form games, where each player may cooperate or defect. It includes the classic prisoner’s dilemma game, along with several related games such as stag hunt, chicken, and more!

The games in this module are typically played repeated several times, with the payoffs accumulated.

The module also includes several well-known strategies for playing the repeated forms of such games, including the famous tit-for-tat strategy from which the t4t library gets its name!

§Rock-paper-scissors games (rps)

This module includes the classic rock-paper-scissors game plus a few variant games involving either more moves or more players.

Modules§

  • Prisoner’s dilemma and related games and strategies.
  • Rock-paper-scissors and related games.