This is a React-based intersection that simulates traffic signals.
It uses a state machine to control the signals, with input from external events.
It is currently configured to stay green on North + South until traffic or pedestrians trigger a change.
Requirements (used during dev; may support other versions):
- NPM 10
- Node 20
Within the project's root directory:
$ npm install
$ npm run devNavigate to the localhost URL provided by Vite in the console.
Use the control panel buttons to trigger events such as traffic waiting at a light or a pedestrian pushing a Walk button to cross a street.
- Not all signal states are fully implemented; some pauses between changes and walk states may not trigger as expected
My notes and thoughts during the project: NOTES.md
