Giter Site home page Giter Site logo

aakashchan / aima-javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aimacode/aima-javascript

0.0 2.0 0.0 572 KB

Javascript implementation of algorithms (and visualizations) from Russell And Norvig's "Artificial Intelligence - A Modern Approach"

License: MIT License

HTML 8.37% JavaScript 89.50% CSS 2.12%

aima-javascript's Introduction

aima-javascript

Javascript implementation of algorithms (and visualizations) from Russell And Norvig's "Artificial Intelligence - A Modern Approach"

Click here to go to the static hosted page

Some Javascript visualizations that I admire, and would like to see similar kinds of things here:

Step by Step to Try

  1. Install Prerequisites.
  2. Doing Installation.
  3. Deploying locally.
  4. Running Local Server.

Prerequisites

  • Node.js version 0.10.0 or newer
  • Install jspm, eslint, gulp globally
npm install -g jspm
npm install -g eslint
npm install -g gulp

Installation

To run locally for development.

  1. run npm install
  2. run jspm install

Deploying

To bundle the web app :

  • Deploy Locally :
  1. Serve build folder locally.
  2. Run gulp bundle.
  3. Run gulp copy to bundle the app into build folder.
  4. Web app in build folder.
  • Deploy to gh-pages :
  1. Run gulp bundle.
  2. Run gulp copy.
  3. Deploy it to gh-pages by running gulp deploy.

Running

Start a local server, e.g. python -m SimpleHTTPServer 80 for Python 2.x or python -m http.server 80 for Python 3.x

Then visit http://localhost using your browser.

Note : Run local server on build directory after deploying locally.

Build

This directory contains the minified source code for production deployment.

Structure

The repository has the following structure:

  • There is a directory for each chapter
  • Each algorithm will have a algorithm.js where the main logic is to be implemented.
  • Each algorithm will also have a c_algorithm.js which will have the javascript visualization.
  • The index.html will include both the scripts.
  • The c_algorithm.js will use AJAX to load algorithm.js into index.html as plain text for side-by-side reference of the reader.
  • The index.html will also include main.js which contains minified version of global scripts like jQuery, angular etc
  • See the index.html of chapter 2 for reference.

Contribution

Put the name of the chapter you want to contribute in the Division of work thread. Please squash all commits into a single commit. Also see CONTRIBUTION.md for know the working status.

aima-javascript's People

Contributors

ghost---shadow avatar norvig avatar rishav159 avatar prabod avatar berviantoleo avatar kaiesh avatar kepta avatar arsfiqball avatar michaeldimmitt avatar mircot avatar

Watchers

Aakash Chandrasekaran avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.