Giter Site home page Giter Site logo

linsanity03 / algorithm_visualizer Goto Github PK

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

Algorithm visualizer game with pygame showcasing visualization of Popular algorithms

License: MIT License

Python 100.00%
algorithm-visualization data-structures-and-algorithms pygame python shortest-path-algorithm algorithm algorithms python3

algorithm_visualizer's Introduction

Python versions pygame

Algorithm Visualizer

This is a game written in Python to show visualization of popular algorithms. Currently, A star algorithm is visualized to find shortest path in this game with more addition incoming.

Tech stack used:

  • Python (3:10)
  • Pygame
  • Figma to create any background, button images

How to play?

  • Clone the github repository.
    git clone https://github.com/LINSANITY03/Algorithm_Visualizer.git
  • Create a virutal env and install the requirements.
    python virtualenv venv
    venv\Scripts\active
    pip install -r requirements.txt
  • Run the AlgoMain.py file.
    python AlgoMain.py

Rules:

  • Source and destination points are required to start.
  • Walls can be selected multiple times or None.
  • A * algorithm can search in all 8 directions representing straight and diagonals cells.
  • Green colour represents source.
  • Red colour represents Destination.
  • Brown colour represents walls.
  • Blue colour represents visited cell.
  • Path if existed is represented by Black colour

Output:

Algorithm_game

Future Integration:

  • Main menu layout
  • More path finding algorithm integration such as Dijkstra's, Breadth-first, depth-first.
  • Comparison of different algorithm.
  • Addition of sorting algorithms.
  • Automate testing.

Collaboration

Feel free to use this codebase for your projects. If you want to talk more about this project or have found bugs, create a pull request or contact me on [email protected].

algorithm_visualizer's People

Contributors

linsanity03 avatar

Watchers

 avatar

algorithm_visualizer's Issues

Main Menu

Create a main menu for user to selected different algorithm. As of now, the default algorithm is A*.

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.