Skip to content

Instantly share code, notes, and snippets.

@carlosefr
Last active March 25, 2019 19:59
Show Gist options
  • Save carlosefr/03586d8695dcaa4697ea21634853b71b to your computer and use it in GitHub Desktop.
Save carlosefr/03586d8695dcaa4697ea21634853b71b to your computer and use it in GitHub Desktop.
Winning answer to the "No Wires" challenge
f=(b,c=j=(l=b.replace(/\n/g,r='')).length)=>[...b].map(d=>{for(a=t=9;a;)t-='H'!=l[(0|j-1+(--a%3-1)*b.search`
`+a/3)%c];j+=`
`!=d,r+={H:'t',t:'.','.':t&&3>t&&'H'}[d]||d})&&r
@carlosefr
Copy link
Author

This is jcazevedo's winning answer to the Pixels Camp Quizshow qualifiers' No Wires challenge, with just 172 bytes.

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