Back
Close

The Hands Have Eyes

Statement

 Goal

Braille is a system for converting the letters of an alphabet to a series of raised "dots", enabling the visually impaired to read by touch rather than sight. Each character is composed of six "cells" numbered like so:

1 ○● 4
2 ●○ 5
3 ○● 6

Observe that individual cells can either be "on" (raised) or "off" (flat). The letters a through j are encoded as follows:

●○ ●○ ●● ●● ●○ ●● ●● ●○ ○● ○●
○○ ●○ ○○ ○● ○● ●○ ●● ●● ●○ ●●
○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○

The letters k through t are the same, except that cell 3 is also raised. For this problem, we'll pretend that u through z are the same as a through f with cells 3 and 6 raised, but be advised that this deviates slightly from standard Braille.

Braille can encode far more than just letters, but for this problem we'll only need these two modifiers:

○○ ○●
○○ ○●
○● ●●

The first indicates "Shift" (capitalize the following letter), and the other means that the next letter should be treated as a number, with a through i interpreted as 1 to 9 and j as 0.
Naturally enough, six empty cells encode a space.

○○
○○
○○

‒‒‒‒‒‒‒‒‒‒

Given three lines of input containing a message encoded in Braille, output the decoded message.

Warning Languages designed only for ASCII characters may handle Unicode characters like ○ and ● by treating them as two or three consecutive characters.
Input
3 lines of Braille cells (○ and ●, with characters separated by a space) containing a message to be decoded
Output
the decoded message
Constraints
N <= 100, where N is the length of the decoded message
Example
Input
●○ ●○ ●● ●● ●○ ●● ●● ●○ ○● ○● ●○ ●○ ●● ●● ●○ ●● ●● ●○ ○● ○● ●○ ●○ ●● ●● ●○ ●●
○○ ●○ ○○ ○● ○● ●○ ●● ●● ●○ ●● ○○ ●○ ○○ ○● ○● ●○ ●● ●● ●○ ●● ○○ ●○ ○○ ○● ○● ●○
○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●● ●● ●● ●● ●● ●●
Output
abcdefghijklmnopqrstuvwxyz

Game modes
Fastest, Shortest

Test cases
alphabet Test
Input
●○ ●○ ●● ●● ●○ ●● ●● ●○ ○● ○● ●○ ●○ ●● ●● ●○ ●● ●● ●○ ○● ○● ●○ ●○ ●● ●● ●○ ●● ○○ ●○ ○○ ○● ○● ●○ ●● ●● ●○ ●● ○○ ●○ ○○ ○● ○● ●○ ●● ●● ●○ ●● ○○ ●○ ○○ ○● ○● ●○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●● ●● ●● ●● ●● ●●
Output
abcdefghijklmnopqrstuvwxyz

tebahpla Validator
Input
●● ●○ ●● ●● ●○ ●○ ○● ○● ●○ ●● ●● ●○ ●● ●● ●○ ●○ ○● ○● ●○ ●● ●● ●○ ●● ●● ●○ ●○ ●○ ○● ○● ○○ ●○ ○○ ●● ●○ ●● ●● ●○ ○● ○● ○○ ●○ ○○ ●● ●○ ●● ●● ●○ ○● ○● ○○ ●○ ○○ ●● ●● ●● ●● ●● ●● ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○ ○○
Output
zyxwvutsrqponmlkjihgfedcba

2 + 2 = 4 Test
Input
○● ●○ ○○ ●● ●○ ●○ ○● ○○ ○● ●○ ○○ ●○ ●● ●○ ●○ ●○ ○● ○○ ○● ●● ○● ●○ ○○ ●○ ●○ ○○ ●○ ○○ ○● ●○ ○○ ○● ●● ○○ ○○ ●○ ●○ ○○ ○● ○● ●● ○○ ○○ ●○ ●○ ●● ●○ ○○ ●● ○○ ○○ ○○ ●○ ●● ○○ ●○ ●○ ○○ ●● ○○
Output
2 plus 2 equals 4

1 + 1 = 2 Validator
Input
○● ●○ ○○ ●● ●○ ●○ ○● ○○ ○● ●○ ○○ ●○ ●● ●○ ●○ ●○ ○● ○○ ○● ●○ ○● ○○ ○○ ●○ ●○ ○○ ●○ ○○ ○● ○○ ○○ ○● ●● ○○ ○○ ●○ ●○ ○○ ○● ●○ ●● ○○ ○○ ●○ ●○ ●● ●○ ○○ ●● ○○ ○○ ○○ ●○ ●● ○○ ●○ ●○ ○○ ●● ○○
Output
1 plus 1 equals 2

Jennifer Test
Input
○○ ○● ●○ ●● ●● ●○ ○○ ○● ●○ ○● ●● ○● ●● ○● ●○ ○● ●● ○● ○● ○● ○● ○○ ●● ○● ○● ○● ○● ○○ ○● ●● ○● ●○ ○● ●● ○● ○● ○● ○○ ○● ●● ○● ●○ ○● ○○ ○○ ●○ ●○ ●● ○○ ●● ○○ ●● ○○ ●● ○○ ●● ○○ ●● ○○ ●● ○○ ●● ○○
Output
Jenny 8675309

Beverly Validator
Input
○○ ●○ ●○ ●○ ●○ ●○ ●○ ●○ ○○ ○○ ●○ ○● ●○ ●○ ○● ○○ ○● ○● ○● ○● ○● ●○ ○● ●○ ○● ○● ○○ ●○ ○● ●○ ○● ●● ●○ ○● ○○ ○○ ●● ●○ ●○ ●○ ●○ ○○ ○● ●○ ○● ●● ○● ●○ ○● ○○ ○● ●● ○● ○○ ○○ ●● ○○ ●○ ●○ ●● ○○ ○● ○○ ○○ ●○ ●○ ●○ ○○ ●● ○○ ●● ○○ ●● ○○ ●● ○○ ●● ○○
Output
Beverly Hills 90210

A prodigious child Test
Input
○○ ●○ ●○ ●○ ○● ○● ○○ ○○ ●○ ●○ ●○ ○● ●○ ●○ ●○ ○○ ○● ●● ●○ ●○ ●● ○● ●○ ●● ○○ ○● ●○ ○● ○● ○○ ●● ●○ ○● ○● ○● ●● ●● ○○ ○● ●○ ○● ○● ●○ ●● ○○ ●● ●○ ●○ ●● ○○ ●○ ●○ ○○ ●● ●○ ○● ○○ ○● ●○ ○● ○● ○○ ○● ●○ ○● ●○ ○○ ●○ ○● ○○ ●○ ●○ ○○ ○○ ●○ ●● ○○ ●○ ●○ ●○ ○● ○○ ●○ ○● ●○ ○● ○● ●● ○● ○● ○○ ●● ●● ●○ ●○ ○○ ○○ ●● ●○ ●● ●○ ○● ●● ○○ ●○ ○● ●○ ●● ○● ○○ ○○ ○○ ●● ○● ○● ○○ ●● ○● ○○ ○○ ○○ ●○ ○○ ●● ○○ ●○ ●● ○○ ○● ○○ ○● ○● ○● ●○ ●○ ●● ○○ ●○ ○○ ○● ○○ ●○ ○○ ○○ ●○ ●○ ○○ ○○ ○○ ●○ ●● ○○ ●○ ●○ ○○ ○○ ○○ ●○ ○○ ○○ ●○ ○○ ●● ●○ ○○ ●○ ○○ ●○ ○○ ○○ ●○ ●● ●○ ●○ ○○ ●○ ○○ ●● ○○ ○○ ●○ ○○ ○○ ○○ ○○ ●● ○○ ●○ ○○ ○○ ●● ●○ ●○ ○○ ●● ○○ ●● ○○
Output
Louis Braille invented this writing system when he was just 15

Checking a few more capitals Validator
Input
○○ ●● ●○ ○● ●○ ○● ●○ ●○ ○○ ○○ ●○ ●○ ●○ ●○ ○● ●● ●○ ○○ ○○ ○● ●○ ●● ●○ ○● ●○ ○● ●● ●● ○○ ○○ ○● ●○ ●○ ●● ●○ ●● ●● ●○ ●○ ○● ●○ ●○ ○○ ○○ ●○ ●● ○● ●○ ○● ○● ●○ ○● ●● ●● ○○ ○○ ●○ ○● ●● ○● ●○ ●○ ○● ●○ ●○ ○○ ○○ ●● ●○ ○● ●● ●○ ●○ ○● ○○ ○○ ●● ●○ ●○ ●○ ○● ●● ●● ○○ ○○ ●○ ●○ ●○ ●● ●● ○○ ○○ ●● ●○ ●● ●○ ○● ●○ ○● ○○ ●● ○○ ●○ ○● ●● ●○ ○● ○○ ○○ ●● ○● ○○ ●○ ●○ ●○ ○● ○○ ○○ ●○ ○● ○○ ○● ●● ●● ●○ ○● ●● ○○ ○○ ●● ●● ○● ○○ ○● ○● ○● ○● ○○ ●○ ●○ ○● ○○ ○○ ○○ ○● ●○ ○● ●● ●● ●○ ●○ ○● ●● ○○ ○○ ●○ ●○ ○○ ●○ ○● ○○ ●○ ●○ ○● ○○ ○○ ○○ ○○ ●● ○○ ●● ○● ●○ ○○ ○○ ○● ●● ○○ ○● ●○ ○● ●● ○○ ○○ ○● ○● ○○ ○● ●● ○○ ○○ ●○ ○● ○○ ●○ ●○ ○● ●○ ○● ●○ ●● ○○ ○○ ●○ ●○ ●● ○○ ○● ●○ ○○ ○○ ●○ ○○ ●● ○○ ○○ ○● ●○ ●○ ●○ ○○ ●○ ○○ ○○ ●○ ○○ ○○ ○● ●○ ●○ ○○ ●○ ○○ ●○ ○○ ●○ ●● ●○ ●○ ●● ○○ ○● ●● ●○ ●○ ○○ ●○ ●○ ●○ ○○ ●○ ○○ ○○ ○● ●● ○○ ○○ ○○ ●○ ●● ●○ ●○ ●● ○○ ○● ●● ○○ ●○ ○○ ○○ ○○ ●○ ○○ ○● ●● ●○ ○○ ●● ○○ ●○ ○○ ○○ ○● ●● ●○ ●● ●○ ○○ ○○ ○● ●● ●○ ●○ ○○ ○○ ○○ ●○
Output
Quietly Realize Something Tremendously Unsettling Viciously Watches Xraying Young Zombies

Solution language

Solution

Stub generator input