Skip to content

kamsza/traffic-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Traffic Simulator

Project carried out as part of the subject Object Oriented Programming.

The purpose of the project was creating a traffic simulator, that:

  • allows changing traffic lights,
  • allows adjusting animation speed and number of vehicles,
  • provides data on traffic jams.

The Simulation.java file contains a set of functions that can be used to create vertical or horizontal roads with any number of lanes.

An example of using the functions is given in the file Main.java, and the animation below.

nagr2.gif

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages