{"id":20121578,"url":"https://github.com/suwadith/a-star-shortest-pathfinding-algorithm-square-grid-java","last_synced_at":"2025-05-06T15:30:58.399Z","repository":{"id":45176217,"uuid":"86907620","full_name":"Suwadith/A-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java","owner":"Suwadith","description":"Java based solution to find the shortest path between 2 Grid Cells. [A* Shortest Pathfinding Algorithm]","archived":false,"fork":false,"pushed_at":"2022-07-13T04:47:07.000Z","size":256,"stargazers_count":5,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"FinalizedVersion","last_synced_at":"2025-04-09T14:07:00.934Z","etag":null,"topics":["a-star","java","shortest-pathfinding-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Suwadith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-01T11:00:03.000Z","updated_at":"2025-03-15T16:54:53.000Z","dependencies_parsed_at":"2022-07-13T18:20:28.489Z","dependency_job_id":null,"html_url":"https://github.com/Suwadith/A-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FA-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FA-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FA-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FA-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suwadith","download_url":"https://codeload.github.com/Suwadith/A-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java/tar.gz/refs/heads/FinalizedVersion","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252712840,"owners_count":21792379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a-star","java","shortest-pathfinding-algorithm"],"created_at":"2024-11-13T19:29:56.976Z","updated_at":"2025-05-06T15:30:58.080Z","avatar_url":"https://github.com/Suwadith.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A-Star-Shortest-Pathfinding-Algorithm-Square-Grid-Java\n\nJava based solution to find the shortest path's distance between 2 Grid Cells. [A* Shortest Pathfinding Algorithm]\n\n### Paths and Values\n```\nManhattan Path - Travels in vertical/horizontal directions (Vertical/Horizontal gCost = 1)\nChebyshev Path - Travels in both diagonal and vertical/horizontal directions (Vertical/Horizontal gCost = 1, Diagonal gCost = 1)\nEuclidean Path - Travels in both diagonal and vertical/horizontal directions (Vertical/Horizontal gCost = 1, Diagonal gCost = 1.4)\n```\n\n### Input\n```\nGrid size (NxN) =\u003e E.g: 20\nPercolation ratio (0-1) =\u003e E.g: 0.8\nx, y  coordinates of the starting cell =\u003e E.g: 0, 0\nx, y  coordinates of the ending cell =\u003e E.g: 19, 19\n```\n\n### Output\n```\nTotal path gCost \nTime taken to calculate the shortest path\nManhattan Path - Yellow line\nChebyshev Path - Squares filled in red color\nEuclidean Path - Black line\n```\n\n## Screenshots\n\n**Grid Size: 20x20, Percolation Ratio: 0.8**\n\n\u003cimg src=\"http://i.imgur.com/TK91JQ9.png\" width=\"350\"\u003e\n\n**Grid Size: 20x20, Percolation Ratio: 0.6**\n\n\u003cimg src=\"http://i.imgur.com/tJH5BUp.png\" width=\"350\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuwadith%2Fa-star-shortest-pathfinding-algorithm-square-grid-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuwadith%2Fa-star-shortest-pathfinding-algorithm-square-grid-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuwadith%2Fa-star-shortest-pathfinding-algorithm-square-grid-java/lists"}