Skip to content

Instantly share code, notes, and snippets.

@kdichev
Created September 4, 2018 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdichev/8ee56ba6f97be766ed8198776e6548f4 to your computer and use it in GitHub Desktop.
Save kdichev/8ee56ba6f97be766ed8198776e6548f4 to your computer and use it in GitHub Desktop.
example
// that needs to become something readable for a pathfinding algorithm like
// [
// [0, 0, 0, 1, 0],
// [1, 0, 0, 0, 1],
// [0, 0, 1, 0, 0],
// ]
const apiData = [
[
"west",
"north"
],
[
"west",
"north"
],
[
"north"
],
[
"north"
],
[
"north"
],
[
"north"
],
[
"north"
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment