{"id":26877065,"url":"https://github.com/shubham-bendre/smart-traffic-simulation","last_synced_at":"2025-03-31T11:18:18.832Z","repository":{"id":283969418,"uuid":"953421077","full_name":"Shubham-Bendre/Smart-Traffic-Simulation","owner":"Shubham-Bendre","description":"This is a Traffic Intersection Simulation built using Pygame. The simulation models vehicles moving through an intersection, following traffic signals, and provides real-time statistics.","archived":false,"fork":false,"pushed_at":"2025-03-23T11:31:00.000Z","size":28593,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T12:19:12.583Z","etag":null,"topics":["pygame","traffic-analysis","traffic-simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shubham-Bendre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-23T10:29:23.000Z","updated_at":"2025-03-23T11:31:03.000Z","dependencies_parsed_at":"2025-03-23T12:19:24.347Z","dependency_job_id":"bdf4254b-3efc-47ae-8a23-258989e27599","html_url":"https://github.com/Shubham-Bendre/Smart-Traffic-Simulation","commit_stats":null,"previous_names":["shubham-bendre/smart-traffic-simulation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubham-Bendre%2FSmart-Traffic-Simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubham-Bendre%2FSmart-Traffic-Simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubham-Bendre%2FSmart-Traffic-Simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubham-Bendre%2FSmart-Traffic-Simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shubham-Bendre","download_url":"https://codeload.github.com/Shubham-Bendre/Smart-Traffic-Simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246457998,"owners_count":20780679,"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":["pygame","traffic-analysis","traffic-simulation"],"created_at":"2025-03-31T11:18:18.373Z","updated_at":"2025-03-31T11:18:18.813Z","avatar_url":"https://github.com/Shubham-Bendre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚦 Traffic Intersection Simulation using Pygame\n\n## 🏁 Overview\nThis is a **Traffic Intersection Simulation** built using **Pygame**. The simulation models vehicles moving through an intersection, following traffic signals, and provides real-time statistics.\n\n## ✨ Features\n- 🚗 **Vehicle Count Tracking** – Tracks vehicles crossing the intersection.\n- ⏳ **Elapsed Time Display** – Shows the time elapsed since simulation start.\n- ⏱️ **Custom Simulation Duration** – Set a custom simulation duration.\n- 📊 **Real-Time Signal Timers** – Prints signal timers every second in the terminal.\n- 📈 **Final Statistics** – Provides:\n  - ✅ Direction-wise vehicle counts\n  - 🚦 Total vehicles that crossed the intersection\n  - 🕒 Total simulation runtime\n\n## 🔧 Technologies Used\n- 🐍 **Python 3.x**\n- 🎮 **Pygame**\n\n## 🚀 How to Run\n1. Clone or download the project files.\n2. Navigate to the project directory.\n3. Run the simulation:\n   ```bash\n   python game.py\n   ```\n4. Watch the simulation and check the terminal for live stats.\n\n## 🎥 Demo\nA video demonstrating the Simulation **![Demo](https://github.com/Shubham-Bendre/Smart-Traffic-Simulation/blob/main/screenshots/Demo.gif)**.\n\n## 📸 Screenshot\n### 1️⃣ Simulation\n![Simulation](./screenshots/sim.png)\n\n\n## 🔮 Future Enhancements\n- 🤖 AI-based **Adaptive Signal Control** for smarter traffic flow.\n- 🛣️ Improved vehicle pathfinding for more realistic movement.\n- 🌍 Integration with real-world traffic data for research purposes.\n\n---\nLet me know if you have any suggestions! 🚥\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubham-bendre%2Fsmart-traffic-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubham-bendre%2Fsmart-traffic-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubham-bendre%2Fsmart-traffic-simulation/lists"}