{"id":21590426,"url":"https://github.com/anishlearnstocode/red-light-automata-simulator","last_synced_at":"2025-03-18T10:14:26.418Z","repository":{"id":38553132,"uuid":"261735992","full_name":"anishLearnsToCode/red-light-automata-simulator","owner":"anishLearnsToCode","description":"Theoy of Computation Project that simulates 2 red lights at a crossing using a finite state machine","archived":false,"fork":false,"pushed_at":"2023-01-06T05:10:09.000Z","size":1667,"stargazers_count":2,"open_issues_count":24,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T16:23:27.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anishLearnsToCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-06T11:18:22.000Z","updated_at":"2024-01-16T04:54:43.000Z","dependencies_parsed_at":"2023-02-05T09:30:30.420Z","dependency_job_id":null,"html_url":"https://github.com/anishLearnsToCode/red-light-automata-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishLearnsToCode%2Fred-light-automata-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishLearnsToCode%2Fred-light-automata-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishLearnsToCode%2Fred-light-automata-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishLearnsToCode%2Fred-light-automata-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anishLearnsToCode","download_url":"https://codeload.github.com/anishLearnsToCode/red-light-automata-simulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244198406,"owners_count":20414443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T16:18:07.712Z","updated_at":"2025-03-18T10:14:26.399Z","avatar_url":"https://github.com/anishLearnsToCode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Red Lights Simulator\n\nThis is a traffic simulator based on a Finite State Machine (DFA) in Theory of Computation. It is \nassuming a  crossing which consists of a main street (like a highway) and a side street.\n\nThese 2 streets are perpendicular to each other and the traffic running on teh main street is given priority.\n\nThere are several attributes to this system:\n\n__Main Street Minimum Run Time (T\u003csub\u003em\u003c/sub\u003e)__ This is the minimum time for which the traffic\nlight will remain green in the main street.\n\n__Side Street Minimum Run Time (T\u003csub\u003es\u003c/sub\u003e)__ This is the minimum time for which the side street\ntraffic light will remain green provided there ae cars in teh side street. If there are no cars in the side street\nthe traffic light will not remain green. \n\nThis is different than the main street, as there the light will remain green even if there \nare no cars.\n\n__Crossing Time (T\u003csub\u003ec\u003c/sub\u003e)__ This is the time taken by any car (either in the main street\nor the side street) to cross the crossing when the light is green for them.\n\n__Wait Time (T\u003csub\u003ew\u003c/sub\u003e)__ This is the time taken by the traffic light to turn green from \nyellow. \n\n## Running on the Browser\nThe project is deployed [here](https://red-light-automata-simulator.firebaseapp.com/simulator)\n\n## Running the Project on you machine\n\n```bash\ngit cone https://github.com/anishLearnsToCode/red-light-automata-simulator.git\ncd red-light-automata-simulator\nng serve\n```\n\nThis will it run it locally on your machine on [port 4200](http://localhost:4200/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishlearnstocode%2Fred-light-automata-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanishlearnstocode%2Fred-light-automata-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishlearnstocode%2Fred-light-automata-simulator/lists"}