Skip to content

Instantly share code, notes, and snippets.

@theDreamer911
Created April 10, 2021 06:25
Show Gist options
  • Save theDreamer911/a78978f8fa6256ac7a2e0bf4bc8a7b01 to your computer and use it in GitHub Desktop.
Save theDreamer911/a78978f8fa6256ac7a2e0bf4bc8a7b01 to your computer and use it in GitHub Desktop.
const getPositions = (s) => [Math.floor(s % 3), Math.floor(s / 3) % 3, Math.floor(s / 9) % 3];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment