Skip to content

Instantly share code, notes, and snippets.

@Jorger
Last active September 16, 2018 21:49
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 Jorger/9506eed6f4c791fb48e3610cef43efac to your computer and use it in GitHub Desktop.
Save Jorger/9506eed6f4c791fb48e3610cef43efac to your computer and use it in GitHub Desktop.
const getDirections = [
[[1, 0], [0, -1], [-1, 0], [0, 1]], //Figura Inicio (1) y línea (5)
[
//Figura tipo T (3)
[[2, 0, -1, 1, 0, 1, 3], [3, 1, 0, 0, 0, 1, 3], [1, 1, 0, 0, 0, -1, 1]],
[
[3, -1, 0, 2, 1, 0, 0],
[2, 0, -1, 1, -1, 0, 2],
[0, 0, -1, 1, 1, 0, 0]
],
[
[0, 0, -1, 1, 0, 1, 3],
[3, -1, 0, 2, 0, 1, 3],
[1, -1, 0, 2, 0, -1, 1]
],
[[1, -1, 0, 2, 1, 0, 0], [0, 0, 1, 3, 1, 0, 0], [2, 0, 1, 3, -1, 0, 2]]
],
[
//Figura tipo curva (4)
[[2, 0, -1, 1], [3, 1, 0, 0]],
[[0, 0, -1, 1], [3, -1, 0, 2]],
[[0, 0, 1, 3], [1, -1, 0, 2]],
[[1, 1, 0, 0], [2, 0, 1, 3]]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment