https://github.com/valerybugakov/trafficsimulator
https://github.com/valerybugakov/trafficsimulator
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/valerybugakov/trafficsimulator
- Owner: valerybugakov
- License: mit
- Created: 2015-12-20T17:21:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T17:44:31.000Z (about 10 years ago)
- Last Synced: 2025-03-10T19:49:53.334Z (about 1 year ago)
- Language: HTML
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TrafficSimulator
Traffic simulator and road lights adjuster using
[Intelligent Driver Model](https://en.wikipedia.org/wiki/Intelligent_driver_model)
and lane-changing model MOBIL. Written in CoffeeScript and HTML5.
Currently it provides only simulator with visualizer but in future releases
traffic lights optimizer will be added to construct best possible schedule and
avoid traffic jams.
## Usage
* Mouse and wheel - scrolling and zoom
* shift + click -- create intersection
* shift + drag from one intersection to another -- create road
* command + click -- create building
Or just press generateMap in control panel and add cars with carsNumber slider.
## Build
To run simulator
```sh
npm install
npm run start
```