Skip to content

MoNouri97/a-star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A* Pathfinding

alt alt

Table of Contents

A React app to visualize the A* path-finding algorithm

Project Structure

There are 3 main (.tsx) files in the project

  • Grid
  • Node
  • A*

Grid.tsx

Holds the logic behind displaying and animating the algorithm and all of the event handlers used by the Node component.
also style file : Grid.css

Node.tsx

Simple dumb component responsible only for displaying a single node and calling the proper event handler .
style file contains the animation keyframes : node.css

A*.tsx

Contains the algorithm logic , mainly a function aStar()

const aStar: (
	grid: INode[][],
	 start: INode,
	 end: INode
	 ) => INode[] | undefined

NodeInterface.tsx

contains an interface to represent a single node and a function to compare nodes.

About

A React app to visualize the A\* path-finding algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published