.. _catalog: Catalog of games ================ Below is a complete list of games included in Gambit's catalog. Check out the :ref:`pygambit API reference ` for instructions on how to search and load these games in Python, and the :ref:`Updating the games catalog ` guide for instructions on how to contribute new games to the catalog. Games from the OpenSpiel library are also available; see :ref:`Loading OpenSpiel games `. .. include:: catalog_table.rst .. _catalog-openspiel: .. rubric:: Loading OpenSpiel games Games from the `OpenSpiel `_ library can be loaded using :func:`pygambit.catalog.load_openspiel`: .. code-block:: python pygambit.catalog.load_openspiel("matrix_rps") pygambit.catalog.load_openspiel("tiny_hanabi") pygambit.catalog.load_openspiel("blotto", params={"players": 2, "coins": 3, "fields": 2}) The ``params`` argument is forwarded directly to ``pyspiel.load_game``; see the `OpenSpiel game list `_ for available parameters per game. This requires ``open_spiel`` to be installed (``pip install open_spiel``; not available on Windows). The game is exported to EFG or NFG format on the fly and loaded into Gambit. Not all OpenSpiel games can be exported; a :class:`ValueError` is raised for games that are incompatible with either format. See the :doc:`OpenSpiel interoperability tutorial ` for worked examples.