Live data from Hacker News

A chess TUI implementation

github.com

1–10 of 47 posts

Re: A chess TUI implementation

#4
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.

Re: A chess TUI implementation

#5

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.

Behold, DEC double-width mode:

    echo -e '\033#6♔♕♖♗♘♙♚♛♜♝♞♟'
(best viewed in xterm)

Re: A chess TUI implementation

#8

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.

You can be clever and use half-blocks: ♘

Re: A chess TUI implementation

#9
Commit 592de110d15c55512f8254b38051e3a61853eb82 looks weird. I don't have the time to read the code, but mod 9 instead of mod 8 in a chess-related program looks like the off-by-one has just been "fixed" in the wrong place.
Post reply on HN