Coder Social home page Coder Social logo

imadtoubal / infinit-pacman-with-javascript Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 179 KB

Infinit Pacman with JavaScript. Using multiple path-finding algorithms: A*, Greedy Best First Search, and Hill Climbing Search

Home Page: https://imadtoubal.github.io/Infinit-Pacman-with-JavaScript/

License: MIT License

JavaScript 92.82% HTML 7.18%
hill-climbing-search a-star-algorithm search-algorithms pacman javascript

infinit-pacman-with-javascript's Introduction

Infinit Pacman with JavaScript

Infinit Pacman with JavaScript. Using multiple path-finding algorithms: A*, Greedy Best First Search, and Hill Climbing Search

Try Demo Here

About

This project was implemented at the University of Missouri as part of the completion of "Artificial Intelligence 1" course by Dr. Yi SHang.

Screenshot

Infinit pac man

Abstract

The issue of finding the shortest path is very paramount in geographical maps, IP routing, telephone networks. A Pathfinding method searches a graph by starting at one vertex and exploring adjacent nodes until the destination node is reached, generally with the intent of finding the cheapest route.

We intend to design a real time AI enemy that follows the player. This is not just the normal enemy-player tracker instead a pathfinder that compares several search algorithms and finds the shortest path to reach the player with dynamic obstacle avoidance. With the simultaneous changes in the grid pattern and search algorithms, we compare how efficient a particular algorithm is in finding the shortest path.

From this project, we intend to build a real time pathfinder that is robust, efficient and well versed with the dynamic environment.

Getting Started

You can simply double click on index.html and use the app. Additionally, you can find the main code in sketch.js

Run locally

You can simply open index.html in your browser.

Additionally, you can run a local server. You need to have Python installed in your computer.

  1. Run a simple http server using Python's built-in http.server:

    python -m http.server
  2. Open http://localhost:8000/ in your favorite browser

Built With

  • p5.js - The HTML canvas library used

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Happy coding!

infinit-pacman-with-javascript's People

Contributors

imadtoubal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.