ANONYMOUS wrote:
> in the run_tournament.py code we have:
>
> # generate agent objects for use in games
> number_of_duplicates = math.ceil(10 / len(agent_classes))
> for agent_cls in agent_classes:
> for i in range(number_of_duplicates):
> agent_pool.append(create_agent(agent_cls))
>
> does it generate agent objects to use in games for every 10 games? if not what would be the frequency of new agents objects generated?
Short answer: This implementation detail is irrelevant to your task, and you should just ignore it.
Long answer:
I did not write this code, but based on what it is doing this is how it is picking the agents to use in each game. A game can require up to 10 players, so it duplicates the agents as many times as it needs to have at least 10 agents, and then presumably selects a random game from them.
Your agent should not assume anything special or statistical about the selection process or the other agents. The tournament code you have been provided is to help you test your agents, and the final testing we will be doing of your agent will not be as simple as the testing tools provided to students. Your agent should not assume anything about the selection of other agents it is playing against, so this code can and likely should be ignored.
Gozz