Skip to content

Instantly share code, notes, and snippets.

@ubarbaxor
Forked from Raphy42/shadok.js
Created March 14, 2021 01:20
Show Gist options
  • Save ubarbaxor/a545636441dc35f1b8d83e6f0db7af87 to your computer and use it in GitHub Desktop.
Save ubarbaxor/a545636441dc35f1b8d83e6f0db7af87 to your computer and use it in GitHub Desktop.
Base 10 to shadok converter
const shadok = n => parseInt(n)
.toString(4)
.split('')
.map(e => ['ga', 'bu', 'zo', 'meu'][e])
.join(' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment