Last active
March 25, 2019 19:59
-
-
Save carlosefr/03586d8695dcaa4697ea21634853b71b to your computer and use it in GitHub Desktop.
Winning answer to the "No Wires" challenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is jcazevedo's winning answer to the Pixels Camp Quizshow qualifiers' No Wires challenge, with just 172 bytes.