Star us on GitHub!
StarSquidGame
Documentation for SquidGame.
Strategy simulation for simple games.
Installation
] add SquidGameOverview
Using function play_game, simulates a game for of N strategies competing against each other (where N is the appropriate number of players for the game).
Implementable games are "deterministic" games where each player knows the possible rewards for each round at decision time, with the only uncertainty being the action of other players.
Rewards are defined as a multi-dimensional array where your action is the first index and rivals are the remaining indexes. For example, a 2 player game:
| Rival Action 1 | Rival Action 2 | |
|---|---|---|
| Your Action 1 | 5.0 | 0.0 |
| Your Action 2 | 10.0 | 2.0 |
In this case:
- If you acted with action
1and your rival also chose action1, you would both earn5points; - If you acted with action
1and your rival chose action2, you would earn0and they would earn10.