Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple Self Driving Car simulation using pure JavaScript (no libraries).Created by Jyothi Prasanna Kambam

NotificationsYou must be signed in to change notification settings

Jyothi2828/self-driving-car-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Check out the working of the app:

Overview

This project simulates aself-driving car using pure JavaScript (no libraries). It implementsAI-based decision-making to navigate roads and obstacles.

Key Features

  • 🚀 No Libraries! Built withVanilla JavaScript (No external frameworks).
  • 🧠 AI-Powered Uses aneural network for self-driving logic.
  • 🎨 Visual Simulation Dynamic road, car movement, and real-time sensors.

Project Structure

  • index.html → UI for the self-driving car simulation.
  • car.js → Defines theCar class, handling movement and AI-based navigation.
  • controls.js → Manages user input (keyboard controls).
  • network.js → Implements a simpleneural network to drive the car.
  • road.js → Defines road structure, lanes, and obstacles.
  • sensor.js → Simulates car sensors to detect obstacles.
  • utils.js → Contains helper functions for calculations.
  • visualizer.js → Renders the car, road, and simulation elements.

How to Use

  1. Clone the Repository
    git clone https://github.com/jyothiprasannakambam/self-driving-car-js.gitcd self-driving-car-js
  2. Openindex.html in your browser.
  3. Adjust settings (e.g., number of cars, mutation rate).
  4. Observe the car driving autonomously! 🚗

Acknowledgments

This project was inspired by the tutorial found atthis video.
The code is based on the tutorial's implementation, with modifications to suit the project's requirements.
✏️ Dr. Radu Mariescu-Istodor created this.Check out his channel:Radu Mariescu-Istodor.

🔍 Keywords

  • Self-driving car
  • Simple JavaScript Project
  • Self-driving car in JavaScript
  • JavaScript AI car simulation
  • Autonomous car with no libraries
  • Self-driving car project in vanilla JS

[8]ページ先頭

©2009-2025 Movatter.jp