Secret Message Decoder This Python script fetches input data from a published Google Docs text URL containing Unicode characters and their (x, y) coordinates, then builds and prints a 2D grid of characters. When viewed in a fixed-width font, the grid reveals a secret message made of uppercase letters.
How it works The script downloads the input data from the provided Google Docs URL.
It parses the data into coordinates and characters.
It creates a grid based on the largest x and y coordinates.
It fills the grid with the characters and fills empty spaces with spaces.
It prints the resulting grid to the terminal.
How to use Make sure Python 3 is installed on your computer.
Install the required Python package by running:
bash Copy Edit pip install requests Publish your Google Doc containing the input data as plain text:
In Google Docs, go to File > Share > Publish to web.
Choose Plain text (.txt) format and publish.
Copy the published document URL.
Open the decode_message.py script and replace the placeholder URL 'YOUR_PUBLISHED_DOC_URL' with the published URL you copied.
Run the script from your terminal:
bash Copy Edit python decode_message.py The secret message will print on your screen.
Notes The script expects the input format to match the example, where data is grouped in triples of lines: x-coordinate, character, y-coordinate.
Coordinates start at 0 and increase to the right (x) and downwards (y).
Empty grid positions are shown as spaces.