Spaces:
Sleeping
Sleeping
File size: 542 Bytes
9e91715 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
"""A module for loading and handling the Matrix Prisoner's Dilemma game logic.
This module uses OpenSpiel's implementation of the Matrix Prisoner's Dilemma (PD)
game. It provides utility functions to set up and retrieve the game instance, which
can be used by the simulation framework to simulate gameplay.
"""
import pyspiel
def get_matrix_pd_game():
"""Load the Matrix Prisoner's Dilemma game instance.
Returns:
pyspiel.Game: The Matrix PD game instance from OpenSpiel.
"""
return pyspiel.load_game("matrix_pd")
|