Something something dot matrix display.
[
0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0;
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0;
0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0;
0 1 0 0 1 0 1 0 0 0 0 1 0 1 0 0 1 0;
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0;
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1;
0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0;
0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0;
0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0;
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0;
0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0;
]
If you "render" it, it looks like this:
XX XX
X X
X X X X
X X X X X X
X X
X X
X X X X
X X X X
X XX X
X X
XX XX
Define frown!
and frown
functions that take the Exercism logo matrix and change the smiling mouth to a frowning mouth:
XX XX
X X
X X X X
X X X X X X
X X
X X
X XX X
X X X X
X X X X
X X
XX XX
Define a method rot270
.
In this particular case we don't care about the type of the matrix, so we can transpose it.
Define stickerwall
.
XX XX X XX XX
X X X X X
X X X X X X X X X
X X X X X X X X X X X X X
X X X X X
X X X X X
X X X X X X XX X
X X X X X X X X X
X XX X X X X X X
X X X X X
XX XX X XX XX
X
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X
XX XX X XX XX
X X X X X
X X X X X X X X X
X X X X X X X X X X X X X
X X X X X
X X X X X
X XX X X X X X X
X X X X X X X X X
X X X X X X XX X
X X X X X
XX XX X XX XX