Skip to content

Convert to and from Braille #1

@betaveros

Description

@betaveros

Would have been ideal for this 2017 MIT Mystery Hunt puzzle. Requires some thought about how to handle encodings that interleave input from multiple lines at once, though.

A sketch of a composable implementation:

cxLines :: CxList Char -> [CxList Char]

breaks things into lines;

cxInterleave :: Int -> [CxList Char] -> [CxList Char]

interleaves k lines into a time, as k = 3 would turn

a1 a2 a3 ...
b1 b2 b3 ...
c1 c2 c3 ...

into

a1 b1 c1 a2 b2 c2 a3 b3 c3 ...

and a final interleaved-Braille encoder/decoder that would take chunks of six characters in the traditional way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions