Skip to content

areyn77463/Street-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Street Light Simulation

This program simulates a street with a traffic light that changes from red to green at set intervals. The program is completely autonomous and does not have a user interface.

Skills Developed

During the course of this project, I gained valuable experience in:

  • Checking for collisions
  • Randomly generating "cars" when the desired number of cars has been reached

Compiling and Running the Program

To compile the program with g++, use the following command:

g++ -o street_light main.cpp Road.cpp

To run the program, use the following command:

./street_light

This will compile and run the program, and the simulation will begin.

About

Simulates the operation of a traffic light

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages