Skip to content

Instantly share code, notes, and snippets.

@misebox
Created July 27, 2020 03:07
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 misebox/64a5ad721b85a91832a88f780f5be614 to your computer and use it in GitHub Desktop.
Save misebox/64a5ad721b85a91832a88f780f5be614 to your computer and use it in GitHub Desktop.
Oneliner making tetrominoes in Javascript
0xf0cc6cc68e2e4en.toString(16).match(/../g).map(a => (a.split('').map(b =>([8,4,2,1].map(c =>(parseInt(b,16)&c)?'#':' ').join('')))))
@misebox
Copy link
Author

misebox commented Jul 27, 2020

tetrominoes-from-7byte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment