def main(): clear() print('Initializing Test...') print('Creating Agents...') agent_types = ['miner', 'farmer', 'refiner', 'woodcutter', 'blacksmith'] agents = [Agent(random.choice(agent_types)) for i in range(100)] # 100 random angets agents = {agent.id: agent for agent in agents} # Debug Printing #print('Sample Agents...') #for agent in agents[:10]: # print(agent) input('Hit any key to continue...') print('Creating Market...') market = Market() market.agents = agents #This needs to be part of the api for Market class for i in range(50): #10 rounds of market simulation clear() market.simulate() report = market.market_report() print(report) report = market.agent_report() print(report) input('Hit any key to continue...')