From c0b70276c4a68e5f0d34ac8ffccff8ad03351e1e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 25 Aug 2009 17:50:27 -0600 Subject: [PATCH] Add arecibo puzzle --- games/forensics/arecibo.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 games/forensics/arecibo.py diff --git a/games/forensics/arecibo.py b/games/forensics/arecibo.py new file mode 100755 index 0000000..447f620 --- /dev/null +++ b/games/forensics/arecibo.py @@ -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)