pygambit.gambit.Game.to_arrays#

Game.to_arrays(dtype: ~typing.Type = <class 'pygambit.gambit.Rational'>) List[array]#

Generate the payoff tables for players represented as numpy arrays.

Parameters:

dtype (type) – The type to which payoff values will be converted and the resulting arrays will be of that dtype

Return type:

list of np.array

See also

from_arrays

Create game from list-like of array-like