| 1 |
# twoxtwogame |
| 2 |
|
| 3 |
A LaTeX package for visualizing 2x2 normal-form games. The package builds upon |
| 4 |
PGF/TikZ to produce beautiful vector graphic visualizations indented for use in |
| 5 |
scientific publications. Commands include producing graphical representations |
| 6 |
of 2x2 games, plotting the equilibria in 2x2 games, and game embeddings for 2x2 |
| 7 |
games. |
| 8 |
|
| 9 |
|
| 10 |
## Installation |
| 11 |
|
| 12 |
Simply include the `twoxtwogame.sty` file in your working directory. |
| 13 |
|
| 14 |
|
| 15 |
## Usage |
| 16 |
|
| 17 |
Include in the preamble the `twoxtwogame` package. |
| 18 |
|
| 19 |
```tex |
| 20 |
\usepackage{twoxtwogame} |
| 21 |
``` |
| 22 |
|
| 23 |
In the main document, utilize the commands that the package provides. |
| 24 |
|
| 25 |
```tex |
| 26 |
\cyclebrgraph~Matching Pennies has a single mixed Nash equilibrium, while |
| 27 |
\coordinationbrgraph~two pure Nash equilibria and a single mixed Nash |
| 28 |
equilibrium. |
| 29 |
``` |
| 30 |
|
| 31 |
For further information, please refer to the included package documentation: |
| 32 |
`twoxtwogame_doc.pdf` which can be built from `twoxtwogame_doc.tex`. |
| 33 |
|
| 34 |
|
| 35 |
## Citing this package |
| 36 |
|
| 37 |
Please use the following citation when using this package: |
| 38 |
``` |
| 39 |
@misc{marris2024_twoxtwogame, |
| 40 |
title={Visualizing 2x2 Normal-Form Games: twoxtwogame LaTeX Package}, |
| 41 |
author={Luke Marris and Ian Gemp and Siqi Liu and Joel Z. Leibo and Georgios Piliouras}, |
| 42 |
year={2024}, |
| 43 |
eprint={2402.16985}, |
| 44 |
archivePrefix={arXiv}, |
| 45 |
primaryClass={cs.GT}, |
| 46 |
url={https://arxiv.org/abs/2402.16985}, |
| 47 |
} |
| 48 |
``` |
| 49 |
|
| 50 |
|
| 51 |
## Contributing |
| 52 |
|
| 53 |
If considering contributoing to the package, please read CONTRIBUTING.md. |
| 54 |
This package is maintained on |
| 55 |
[GitHub](https://github.com/google-deepmind/twoxtwogame) and mirrored on |
| 56 |
[CTAN](https://ctan.org/pkg/twoxtwogame). |
| 57 |
|
| 58 |
|
| 59 |
## License and disclaimer |
| 60 |
|
| 61 |
Copyright 2024 DeepMind Technologies Limited |
| 62 |
|
| 63 |
All software is licensed under the Apache License, Version 2.0 (Apache 2.0); |
| 64 |
you may not use this file except in compliance with the Apache 2.0 license. |
| 65 |
You may obtain a copy of the Apache 2.0 license at: |
| 66 |
https://www.apache.org/licenses/LICENSE-2.0 |
| 67 |
|
| 68 |
All other materials are licensed under the Creative Commons Attribution 4.0 |
| 69 |
International License (CC-BY). You may obtain a copy of the CC-BY license at: |
| 70 |
https://creativecommons.org/licenses/by/4.0/legalcode |
| 71 |
|
| 72 |
Unless required by applicable law or agreed to in writing, all software and |
| 73 |
materials distributed here under the Apache 2.0 or CC-BY licenses are |
| 74 |
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
| 75 |
either express or implied. See the licenses for the specific language governing |
| 76 |
permissions and limitations under those licenses. |
| 77 |
|
| 78 |
This is not an official Google product. |