This project showcases a self-driving car simulation built using vanilla JavaScript, with no external libraries. It employs neural networks to simulate the decision-making process of a self-driving car.
- Vanilla JavaScript: The project uses pure JavaScript, HTML, and CSS.
- Neural Networks: Implements basic neural networks for decision-making.
- Sensor Simulation: Simulates car sensors for obstacle detection.
- Visualization: Visual representation of the car, road, and sensors.
To run this project, you'll need a modern web browser with JavaScript enabled.
- Clone the repository:
git clone https://github.com/HalemoGPA/Ai-car-bot-vanilla-js.git
- Navigate to the project directory:
cd Ai-car-bot-vanilla-js
- Open
index.html
in your web browser.
- Open
index.html
to start the simulation. - The car will attempt to drive itself using the implemented neural network.
- Modify the JavaScript files to adjust the car's behavior and neural network parameters.
index.html
: The main HTML file.main.css
: The stylesheet for the project.main.js
: The entry point for the JavaScript code.car.js
: Contains the Car class.controls.js
: Manages user inputs.road.js
: Handles road rendering and logic.sensor.js
: Simulates car sensors.network.js
: Implements the neural network.visualizer.js
: Visualizes the neural network.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.
- Inspired by various online tutorials and resources on self-driving cars and neural networks.
Feel free to customize this README to better suit your project's details and style!