Skip to content

C Traffic Lights Simulation, simulating a two-way junction with traffic. Includes linked list implementation, pass parameters by reference, test suite and fully written in Vim terminal.

Notifications You must be signed in to change notification settings

oliciep/Traffic_Lights_Simulation

Repository files navigation

Traffic Lights Simulation

This project is a C based traffic simulation that utilises C to simulate a junction with traffic on either side of a road. The result is a realistic simulation where cars are let out to pass in varied increments, when the traffic light is open on that side. This project was written fully in the vim editor in a shell terminal.

Features

  • C based backend implementation of traffic lights system.
  • Linked list implementation for dynamic sorting of traffic.
  • Intakes multiple parameters for light probability and traffic amount.
  • Contains writeup with tests and reasons for design choices.
  • Fully written in Vim editor in a linux terminal.

Documentation

For the write-up of design choices and experiments:

Documentation

Deployment

To deploy this project, run this script within the directory:

  gcc -ansi -o runSimulations main.c runSimulations.c runOneSimulation.c

Authors

About

C Traffic Lights Simulation, simulating a two-way junction with traffic. Includes linked list implementation, pass parameters by reference, test suite and fully written in Vim terminal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages