CityScope / CS_Cooper-Hewitt

meta repo/sandbox repo for keeping everything related to the Cooper Hewitt exhibition
5 stars 2 forks source link

Increase the number of Agent #59

Closed agrignard closed 5 years ago

agrignard commented 5 years ago

There is a problem in the current version it seems impossible to increase the number of Agent.

Right now it set to 800 in createAgents(800); however we shoudl be able to play with the numebr of agent easily. Right now it produces a weird error in CalcRoute()

ArrayList newPath = map.graph.aStar(srcNode, destNode);

Step to reproduce:

createAgents(1000);
aberke commented 5 years ago

Fixed by https://github.com/CityScope/CS_Cooper-Hewitt/pull/60