Hi,I wish to simulate a traffic flow for a roundabout with 3 exits and be able to change how many cars enter and exit the roundabout and randomly turn off the exits. At a later stage I would also like to be able to input traffic lights to see would the flow of traffic increase or decrease. Can anyone help me with this I thought of using sprite animation maybe?

Sparate GUI and model logic to avoid one gigantic sphagetti of code. Develop the simulation logic (model) first, testing it with simple hard-coded test case data and print statements. When it's working add the GUI. Sprite animation sounds appropriate, each sprite can be linked to a Vehicle in the simulation model.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.