Python: Traffic-Simulation (cars on a road) -
i want create traffic simulator here: http://www.doobybrain.com/wp-content/uploads/2008/03/traffic-simulation.gif didn't thougt deep this.
i create class car. every car has own color, position , on.
and create road array.
but how tell car go? hear ideas?
edit: forbidden new ideas programmers? why people want close thread? or ask such questions? dont understand them. :(
edit2: next time go gamer-forum. ideas until now. thanks!
there java-based package called processing targetted @ artists , non- or beginner-programmers includes nice visualization features, while presenting simplified development environment (no "public static void main(string[] args)", instance). @ demos show particle systems idea on how model individual cars. there python rendition of code call pyprocessing follows of same simple programming idiom.
here little "tesla" applet - move mouse between 2 spherical electrodes.
Comments
Post a Comment