Skip to content

Instantly share code, notes, and snippets.

@jwalsh
Created June 17, 2019 20:49
Show Gist options
  • Save jwalsh/450ae24ac291c893b54ef34a9f2f5414 to your computer and use it in GitHub Desktop.
Save jwalsh/450ae24ac291c893b54ef34a9f2f5414 to your computer and use it in GitHub Desktop.
// Procedure: Each connection should link lower to higher
let layout = [
[0, 1, 2],
[7, 8, 3],
[6, 5, 4],
];
// Encoding
let digits = [
"0107122334455667", // 0
"1858",
"01122364556", // 2
"011228484556",
"0123343878", // 4
"0107123438455678",
"07343845566778", // 6
"01122868",
"01071223343845566778", // 8
"010712233478"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment