{"id":18000170,"url":"https://github.com/cygnusroboticus/pathfinding","last_synced_at":"2026-03-17T09:39:25.853Z","repository":{"id":62430301,"uuid":"161876238","full_name":"CygnusRoboticus/pathfinding","owner":"CygnusRoboticus","description":"Tile-based A* pathfinding in elixir","archived":false,"fork":false,"pushed_at":"2019-02-24T20:37:33.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T00:34:12.307Z","etag":null,"topics":["elixir","map","pathfinding","tile"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/pathfinding","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CygnusRoboticus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T06:16:06.000Z","updated_at":"2024-04-18T11:26:24.000Z","dependencies_parsed_at":"2022-11-01T20:17:44.360Z","dependency_job_id":null,"html_url":"https://github.com/CygnusRoboticus/pathfinding","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/CygnusRoboticus%2Fpathfinding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CygnusRoboticus%2Fpathfinding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CygnusRoboticus%2Fpathfinding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CygnusRoboticus%2Fpathfinding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CygnusRoboticus","download_url":"https://codeload.github.com/CygnusRoboticus/pathfinding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245611785,"owners_count":20643894,"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":["elixir","map","pathfinding","tile"],"created_at":"2024-10-29T23:10:00.182Z","updated_at":"2026-03-17T09:39:25.806Z","avatar_url":"https://github.com/CygnusRoboticus.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pathfinding\n\nPathfinding is a simple package for performing 2D [A-star](https://en.wikipedia.org/wiki/A*_search_algorithm) pathfinding in square- and hex-based tile grids.\n\n## Installation\n\n[Available in Hex](https://hex.pm/packages/pathfinding), the package can be installed\nby adding `pathfinding` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:pathfinding, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Basic Usage\n\n```elixir\ngrid = %Pathfinding.Grid{\n  tiles: [\n    [1, 1, 0, 1, 1],\n    [1, 1, 0, 1, 1],\n    [1, 1, 0, 1, 1],\n    [1, 1, 1, 1, 1],\n    [1, 1, 1, 1, 1]\n  ],\n  walkable_tiles: [1]\n}\n\nPathfinding.find_path(grid, 1, 2, 3, 2) == [\n  %{x: 1, y: 2},\n  %{x: 1, y: 3},\n  %{x: 2, y: 3},\n  %{x: 3, y: 3},\n  %{x: 3, y: 2}\n]\n```\n\n## API Documentation\n\nDocumentation can be found at [https://hexdocs.pm/pathfinding](https://hexdocs.pm/pathfinding).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcygnusroboticus%2Fpathfinding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcygnusroboticus%2Fpathfinding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcygnusroboticus%2Fpathfinding/lists"}