Add arecibo puzzle

This commit is contained in:
Neale Pickett 2009-08-25 17:50:27 -06:00
parent dc7d2174fb
commit c0b70276c4
1 changed files with 15 additions and 0 deletions

15
games/forensics/arecibo.py Executable file
View File

@ -0,0 +1,15 @@
#! /usr/bin/env python3
# 0 1 2 3 4
# 1234567890123456789012345678901234567890123
# ||| | | | | | | | | | | | |
msg = (' #### #### # ### ### ### # ### '
' # # # # ## # # # # # '
' # # #### # #### #### # # # '
' # # # # # # # # # # # # '
' #### #### ### ### ### ### # ### ')
msg = msg.replace('#', '0')
msg = msg.replace(' ', '1')
num = int(msg, 2)
print(num)