{"id":28753478,"url":"https://github.com/google-deepmind/twoxtwogame","last_synced_at":"2025-06-17T00:40:16.958Z","repository":{"id":224063681,"uuid":"761910613","full_name":"google-deepmind/twoxtwogame","owner":"google-deepmind","description":"Latex package for visualizing 2x2 games","archived":false,"fork":false,"pushed_at":"2024-03-06T10:33:45.000Z","size":748,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-16T04:53:42.706Z","etag":null,"topics":["game-theory","latex","research","tex","visualization"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-deepmind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-22T18:05:21.000Z","updated_at":"2024-04-16T04:53:42.707Z","dependencies_parsed_at":"2024-03-05T17:47:16.108Z","dependency_job_id":null,"html_url":"https://github.com/google-deepmind/twoxtwogame","commit_stats":null,"previous_names":["google-deepmind/twoxtwogame"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/google-deepmind/twoxtwogame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Ftwoxtwogame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Ftwoxtwogame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Ftwoxtwogame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Ftwoxtwogame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-deepmind","download_url":"https://codeload.github.com/google-deepmind/twoxtwogame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Ftwoxtwogame/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268635,"owners_count":22983601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game-theory","latex","research","tex","visualization"],"created_at":"2025-06-17T00:40:15.600Z","updated_at":"2025-06-17T00:40:16.944Z","avatar_url":"https://github.com/google-deepmind.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twoxtwogame\n\nA LaTeX package for visualizing 2x2 normal-form games. The package builds upon\nPGF/TikZ to produce beautiful vector graphic visualizations indented for use in\nscientific publications. Commands include producing graphical representations\nof 2x2 games, plotting the equilibria in 2x2 games, and game embeddings for 2x2\ngames.\n\n\n## Example Functionality\n\n### Equilibria\n\n![Examples of Equilibria in 2x2 Games](images/equilibria.png)\n\n### Equilibrium-invariant game embeddings\n\n![Example space of game embeddings](images/embeddings.png)\n\n###  Ordinal graphs\n\n![Table of ordinal game graphs](images/ordinal_graphs.png)\n\n\n## Installation\n\nSimply include the `twoxtwogame.sty` file in your working directory.\n\n\n## Usage\n\nInclude in the preamble the `twoxtwogame` package.\n\n```tex\n\\usepackage{twoxtwogame}\n```\n\nIn the main document, utilize the commands that the package provides.\n\n```tex\n\\cyclebrgraph~Matching Pennies has a single mixed Nash equilibrium, while\n\\coordinationbrgraph~two pure Nash equilibria and a single mixed Nash\nequilibrium.\n```\n\nFor further information, please refer to the included package documentation:\n`twoxtwogame_doc.pdf` which can be built from `twoxtwogame_doc.tex`.\n\n\n## Citing this package\n\nPlease use the following citation when using this package:\n```\n@misc{marris2024_twoxtwogame,\n    title={Visualizing 2x2 Normal-Form Games: twoxtwogame LaTeX Package}, \n    author={Luke Marris and Ian Gemp and Siqi Liu and Joel Z. Leibo and Georgios Piliouras},\n    year={2024},\n    eprint={2402.16985},\n    archivePrefix={arXiv},\n    primaryClass={cs.GT},\n    url={https://arxiv.org/abs/2402.16985},\n}\n```\n\n\n## Contributing\n\nIf considering contributoing to the package, please read CONTRIBUTING.md.\nThis package is maintained on\n[GitHub](https://github.com/google-deepmind/twoxtwogame) and mirrored on\n[CTAN](https://ctan.org/pkg/twoxtwogame).\n\n\n## License and disclaimer\n\nCopyright 2024 DeepMind Technologies Limited\n\nAll software is licensed under the Apache License, Version 2.0 (Apache 2.0);\nyou may not use this file except in compliance with the Apache 2.0 license.\nYou may obtain a copy of the Apache 2.0 license at:\nhttps://www.apache.org/licenses/LICENSE-2.0\n\nAll other materials are licensed under the Creative Commons Attribution 4.0\nInternational License (CC-BY). You may obtain a copy of the CC-BY license at:\nhttps://creativecommons.org/licenses/by/4.0/legalcode\n\nUnless required by applicable law or agreed to in writing, all software and\nmaterials distributed here under the Apache 2.0 or CC-BY licenses are\ndistributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\neither express or implied. See the licenses for the specific language governing\npermissions and limitations under those licenses.\n\nThis is not an official Google product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-deepmind%2Ftwoxtwogame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-deepmind%2Ftwoxtwogame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-deepmind%2Ftwoxtwogame/lists"}