Coder Social home page Coder Social logo

gautam-sharma1 / pikachu_simulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 389 KB

A simulator based on Pygame for simulating Astar, Breadth FIrst Search and Bidirectional Search

Python 100.00%
breadth-first-search bidirectional-search depth-first-search pygame python3 artficial-intelligence astar-algorithm astar-pathfinding

pikachu_simulator's Introduction

Pikachu_Simulator

A custom simulator was built using pygame and programmed using python to simulate A star search vs Bidirectional Search. We have named it as the Pikachu Simulator.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Clone and extract Pikachu_Simulator.zip in a Folder of your choice. To run it first install pygame:

Note : It works with python 3.7

Pygame

Installing

A step by step series of examples that tell you how to get a development env running

For MAC OS In terminal:

python3 -m pip install -U pygame --user
mkdir Pikachu
cd Pikachu
git clone https://github.com/gautam-sharma1/Pikachu_Simulator.git

End with an example of getting some data out of the system or using it for a little demo

Running the tests

In terminal:

python sim.py -a [astar or bidirec] -x [staring x position] -y [staring y position] -gx [goal x position] -gy [goal x position]

Note : Only put coordinates that are multiple of 25 and <=500.

Eg :

python sim.py -a astar -x 0 -y 0 -gx 100 -gy 100
python sim.py -a bidirec -x 0 -y 0 -gx 100 -gy 100

The program execution time will be printed out to the terminal after the program terminates. Observe the difference in time between A star and Bidirectional.

Built With

  • Pygame - Used for simulation environment

Authors

  • Gautam Sharma - Initial work - Github

License

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

Acknowledgments

pikachu_simulator's People

Contributors

gautam-sharma1 avatar

Watchers

 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.