Example #1
0
def optimal_strategy(players_num):
    controller = Controller(players_num)

    # Optimal points for the first player
    point = round(controller.get_optimal_point(), DECIMALS)
    points = [
        round(elem, DECIMALS) for elem in controller.get_optimal_points()
    ]

    click.echo('The optimal strategy for the first player: {}'.format(point))
    click.echo(
        'Was randomly chosen from the several optimal points: {}'.format(
            points))