https://github.com/akarshjha03/indranav-visualize
A fully functional self-driving car simulation built using vanilla JavaScript, featuring a neural network for autonomous navigation.
https://github.com/akarshjha03/indranav-visualize
Last synced: 10 months ago
JSON representation
A fully functional self-driving car simulation built using vanilla JavaScript, featuring a neural network for autonomous navigation.
- Host: GitHub
- URL: https://github.com/akarshjha03/indranav-visualize
- Owner: Akarshjha03
- Created: 2025-02-16T10:49:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-28T15:32:42.000Z (11 months ago)
- Last Synced: 2025-02-28T20:49:34.433Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Self-Driving Car with JavaScript 🚗💡
A fully functional self-driving car simulation built using vanilla JavaScript, featuring a neural network for autonomous navigation. No external libraries required! 🎯
## 🚀 Demo
Watch the tutorial: [Self-Driving Car with JavaScript](link-to-tutorial)
## 📌 Features
- 🏎️ Car simulation with physics-based motion
- 🧠 Neural network-based decision-making
- 🎯 Collision detection and lane navigation
- 📈 Machine learning with a simple backpropagation algorithm
- 🖥️ Customizable road and traffic settings
## 📂 Project Structure
```text
IndraNav - Visualize
├── 📁 assets # Image assets (if any)
├── 📄 index.html # Main HTML file
├── 📄 style.css # Styling for the simulation
├── 📄 script.js # Core JavaScript logic
├── 📄 car.js # Car class implementation
├── 📄 road.js # Road and lane drawing logic
├── 📄 network.js # Simple neural network implementation
└── 📄 utils.js # Helper functions
```
🖥️ Usage
Use the arrow keys to manually control the car (optional).
Refresh the page to restart the training process.
Adjust neural network parameters in network.js for better learning results.
💡 How It Works
The car senses its surroundings using raycasting sensors.
A neural network processes sensor data and determines the best steering actions.
The car continuously learns from interactions with obstacles and other cars.
🛠️ Technologies Used
JavaScript (Vanilla) - Core logic
HTML & CSS - Interface and visualization
Canvas API - Graphics rendering
📜 License
This project is open-source under the MIT License.
🙌 Contributing
Contributions are welcome! To contribute:
Fork the repository 🍴
Create a new branch 🔀
Implement your changes 🚀
Submit a pull request ✅
📬 Contact
For questions, reach out via GitHub Issues.