Box drawing characters puzzle
Puzzle
Remeber good old days when PCs were already around, but Windows wasn’t?
Program ran in text mode and those that wanted “GUI” used box drawing
characters to draw the dialog boxes, buttons, window frames and lots of other
stuff. If you do not remember, here are box drawing characters:
┌ ┬ ┐ ╒ ╤ ╕ ╓ ╥
╖ ╔ ╦ ╗ ─ │ ║ ├
┼ ┤ ╞ ╪ ╡ ╟ ╫ ╢
╠ ╬ ╣ ═ └ ┴ ┘ ╘
╧ ╛ ╙ ╨ ╜ ╚ ╩ ╝
Arrange these characters into connected shape so that all ends match:
single end connects to single end and double end connects to double end and
there are no hanging ends. IT is OK to use any number of spaces but each box
drawing characters must be used once and only once.
For example, figure
┌┬┐ ╒╤╕ ╓╥╖ ╔╦╗ ─ │ ║
├┼┤ ╞╪╡ ╟╫╢ ╠╬╣ ═
└┴┘ ╘╧╛ ╙╨╜ ╚╩╝
tacks nicely all corner pieces, but straight pieces remain untacked. Also, the
resulting figure is not connected.
Comments
- These characters made their way into modern standards (Unicode).
- They are supported by standard Windows fonts.
- Unicode standard explicitly discourages their usage (intended purpose is to
be able to convert between legacy encoding standards).
- Unicode Standard defines more box drawing characters, with round corners,
thick ends, dashed and so on, but only the above forty are true box
drawing characters, since they were in the original CP437 encoding.
Solution
Solution is here
[
Index page
|
Feedback
]