Пример #1
0
def __make_asymmetric_game(N, S):
    """
	N: number of players
	S: number of strategies
	"""
    roles = ["r" + leading_zeros(i, N) for i in range(N)]
    players = {r: 1 for r in roles}
    strategies = {r: ["s" + leading_zeros(i, S) for i in range(S)] for r in roles}
    return Game(roles, players, strategies)
Пример #2
0
def __make_symmetric_game(N, S):
    """
	N: number of players
	S: number of strategies
	"""
    roles = ["All"]
    players = {"All": N}
    strategies = {"All": ["s" + leading_zeros(i, S) for i in range(S)]}
    return Game(roles, players, strategies)