Visualizing 2x2 Normal-Form Games: twoxtwogame LaTeX Package

Luke Marris,Ian Gemp,Siqi Liu,Joel Z. Leibo,Georgios Piliouras
2024-02-27
Abstract:Normal-form games with two players, each with two strategies, are the most studied class of games. These so-called 2x2 games are used to model a variety of strategic interactions. They appear in game theory, economics, and artificial intelligence research. However, there lacks tools for describing and visualizing such games. This work introduces a LaTeX package for visualizing 2x2 games. This work has two goals: first, to provide high-quality tools and vector graphic visualizations, suitable for scientific publications. And second, to help promote standardization of names and representations of 2x2 games. The LaTeX package, twoxtwogame, is maintained on GitHub and mirrored on CTAN, and is available under a permissive Apache 2 license.
Software Engineering,Computer Science and Game Theory
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: **Lack of effective tools for describing and visualizing 2×2 normal - form games**. Specifically, 2×2 normal - form games (i.e., two - person games where each player has two strategies) are widely used in game theory, economics, and artificial intelligence research to model various strategic interactions. However, there is currently a lack of high - quality tools to clearly describe and visualize these games. ### Specific background of the problem: 1. **Importance of 2×2 games**: Although these games are simple, they can describe a variety of strategic interactions, including competitive (such as zero - sum games), cooperative (such as common - payoff games), or mixed - motive situations. Therefore, they are widely used to understand cooperation, competition, coordination, social dilemmas, etc. 2. **Deficiencies of existing tools**: Although 2×2 games are widely used in multiple fields, the existing tools cannot provide high - quality visualization and standardized representation methods, which limits the expression and communication of researchers in scientific publications. ### Goals of the paper: 1. **Provide high - quality tools and vector - graphics visualization**: Develop a LaTeX package named `twoxtwogame` for generating high - quality 2×2 game visualization charts, which are suitable for scientific research and publication. 2. **Promote the standardization of naming and representation**: By providing a unified naming and representation method, help the research community reach an agreement when describing 2×2 games, thereby improving communication efficiency. ### Solutions: - **Developed a LaTeX package**: This package provides multiple commands and can generate different types of visualization charts, such as payoff diagrams, best - response diagrams, distribution diagrams, equilibrium diagrams, etc. - **Support multiple visualization forms**: Including partial ordinal diagrams, best - response diagrams, distribution diagrams, visualization of equilibrium sets, etc., ensuring that users can choose the appropriate representation method according to their needs. - **Open - source and ease of use**: This package is hosted on GitHub and mirrored on CTAN, and is released under the Apache 2 license, facilitating community use and contribution. Through these efforts, the author hopes that this tool can help researchers convey their research results more concisely and accurately and promote the standardization of 2×2 game representation methods.