def format_payoff_matrix(self, payoff_matrix: list, player_1_strategies: list, player_2_strategies: list) -> str:
    '\n        This is a helper function that turns a payoff matrix and available\n        strategies into ASCII art of a payoff matrix\n        '
    ret = '\t    Player 1\n'
    ret += (('\t          ' + player_1_strategies[0]) + '            ')
    for j in range(1, len(payoff_matrix[0])):
        ret += (player_1_strategies[j] + '            ')
    ret += '\n'
    ret += '\t    +------------+'
    for j in range(1, len(payoff_matrix[0])):
        ret += '------------+'
    ret += '\n'
    ret += (('Player 2  ' + str(player_2_strategies[0])) + ' |')
    for j in range(len(payoff_matrix[0])):
        ret += ('{:>5g}, {:<5g}'.format(payoff_matrix[0][j][0], payoff_matrix[0][j][1]) + '|')
    ret += '\n'
    for i in range(1, len(payoff_matrix)):
        ret += '\t    +------------+'
        for j in range(1, len(payoff_matrix[0])):
            ret += '------------+'
        ret += '\n'
        ret += (((('\t  ' + player_2_strategies[i]) + ' |') + '{:>5g}, {:<5g}'.format(payoff_matrix[i][0][0], payoff_matrix[i][0][1])) + '|')
        for j in range(1, len(payoff_matrix[i])):
            ret += ('{:>5g}, {:<5g}'.format(payoff_matrix[i][j][0], payoff_matrix[i][j][1]) + '|')
        ret += '\n'
    ret += '\t    +------------+'
    for j in range(1, len(payoff_matrix[0])):
        ret += '------------+'
    ret += '\n'
    return ret
This is a helper function that turns a payoff matrix and available
strategies into ASCII art of a payoff matrix
def format_payoff_matrix(self, payoff_matrix: list, player_1_strategies: list, player_2_strategies: list) -> str:
    '\n        This is a helper function that turns a payoff matrix and available\n        strategies into ASCII art of a payoff matrix\n        '
    ret = '\t    Player 1\n'
    ret += (('\t          ' + player_1_strategies[0]) + '            ')
    for j in range(1, len(payoff_matrix[0])):
        ret += (player_1_strategies[j] + '            ')
    ret += '\n'
    ret += '\t    +------------+'
    for j in range(1, len(payoff_matrix[0])):
        ret += '------------+'
    ret += '\n'
    ret += (('Player 2  ' + str(player_2_strategies[0])) + ' |')
    for j in range(len(payoff_matrix[0])):
        ret += ('{:>5g}, {:<5g}'.format(payoff_matrix[0][j][0], payoff_matrix[0][j][1]) + '|')
    ret += '\n'
    for i in range(1, len(payoff_matrix)):
        ret += '\t    +------------+'
        for j in range(1, len(payoff_matrix[0])):
            ret += '------------+'
        ret += '\n'
        ret += (((('\t  ' + player_2_strategies[i]) + ' |') + '{:>5g}, {:<5g}'.format(payoff_matrix[i][0][0], payoff_matrix[i][0][1])) + '|')
        for j in range(1, len(payoff_matrix[i])):
            ret += ('{:>5g}, {:<5g}'.format(payoff_matrix[i][j][0], payoff_matrix[i][j][1]) + '|')
        ret += '\n'
    ret += '\t    +------------+'
    for j in range(1, len(payoff_matrix[0])):
        ret += '------------+'
    ret += '\n'
    return ret