Created
June 8, 2010 22:24
-
-
Save chendo/430735 to your computer and use it in GitHub Desktop.
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
| # Daft Golf | |
| # by chendo | |
| # 484 bytes | |
| s=%w(after better do ever faster harder hour is it make makes more never our over stronger than us work) | |
| m="chavnohzy3a7uvnb4iw21ogt3xwazyiw6gqsoaihdjw36q8encnd1oxfpy2eomjfxfr9" | |
| n="5vjlr1vcd8f7rdjb3c3zfk0kh6cjxc2l8dzvzk2hhfrwkg2n2ln04mpli1tq5gnfu7nvxc6dbk8yq9uxnfboimh5902mqtggizhhaakr2nk2xsh4qar5b8aypdocmeakqelscg11evw57i3ttep2ott0pqteclmae5sckhc" | |
| def d(e,a) | |
| t=e.to_i(36).to_s(2) | |
| t[0]='' | |
| t.scan(/.{5}/).map{|b|a[b.to_i(2)]} | |
| end | |
| w=d(m,s).join(' ').split(' ') | |
| puts d(n,w).join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment