4 ms·
It has always bothered me that there are no Unicode code points for the left/right halves of chess pieces, which would enable a nearly square board using two ch
by shmageggy 3y ago
It has always bothered me that there are no Unicode code points for the left/right halves of chess pieces, which would enable a nearly square board using two characters per square.
This is a nice solution, but it makes for a rather big board.
- colanderman 3y agoBehold, DEC double-width mode: echo -e '\033#6♔♕♖♗♘♙♚♛♜♝♞♟' (best viewed in xterm)
- shmageggy 3y agoThis gets the correct aspect ratio but the glyphs (on my terminal) look stretched :(
- saulpw 3y agoYou can be clever and use half-blocks: ♘
- shmageggy 3y agoWhat's a half-block and how do I use one?
- saulpw 3y agoSorry, that didn't render. They're U+258C and U+2590. So you put them on either side and each square is rendered across 3 cells, and the 2 outer cells are half-blocks shared with the adjacent squares. https://en.wikipedia.org/wiki/Block_Elements https://en.wikipedia.org/wiki/Block_Elements