You are on page 1of 9

TRAFFIC SIMULATOR

The Uncool Version

Created by:
Rahul kumar Gupta
16BCS1740
Bhupinder Jaswal
16BCS1739
Dibya Nayani Senapati
16BCS1779
INTRODUCTION
• This project is a real world model of a traffic intersection with
traffic lights
• This project tries to simulate how the traffic flows at a
crowded intersection
• The cars are intelligent enough to look out for collisions and
avoid it
FEATURES
• Visual representation of cars and road using top down
perspective with primitive shapes
• Ability to toggle traffic lights manually
• Ability to change parameters like spawn interval, traffic light
interval and number of cars on the map
TECHNIQUES USED
• Arrays of primitive data types to tackle most problems
• Swing for the front end of the program
• Jpanel for painting the cars and map
• Thread for running the calculations
• Creating object of Cars to simulate real world like behaviour
CHALLENGES OVERCAME
• Adding the spawn function
• Adding the dynamic collision check for cars
• Adding the traffic light system
• Adding the turning system
• Simulating all the cars without affecting performance
SCREENSHOTS
SCREENSHOTS-2

You might also like