Simple Javascript A.I. tutorial – Part 1

Here is a simple Javascript A.I. tutorial for beginners. You need to have basic knowledge on HTML, CSS and JavaScript, as well as programming basics.

This tutorial is a starting point for people who want to implement A.I. in their projects. You are free to “steal” ideas and techniques from this 🙂

In this tutorial we will create a car with an A.I. driver, which will drive along a road avoiding obstacles. The avoiding will be made by the A.I. and not by direct programming (like using IF-statements).

In this first part we’ll create the scene and the objects needed.

More info on my website:

The code over at jsfiddle:

Thanks for watching!