#game-theory #economics #evolution

t4t-games

A library of games and strategies built with t4t

3 releases

new 0.0.3 May 26, 2024
0.0.2 Apr 28, 2024
0.0.1 Apr 28, 2024

#66 in Simulation

Download history 205/week @ 2024-04-22 92/week @ 2024-04-29

297 downloads per month

MIT license

230KB
3K SLoC

Tit-for-tat games (t4t-games)

GitHub crates.io docs.rs/t4t-games GitHub actions workflow status

A library of games and strategies implemented with the t4t library.


lib.rs:

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.

Dependencies

~3.5MB
~73K SLoC