A chess TUI implementation
github.com
A chess TUI implementation
1–10 of 47 posts
Re: A chess TUI implementation
#2Looks good! In case anyone else wonders (first thing I wanted to know), UCI (to talk to engines and online chess) is in the to-do, not yet implemented.
Re: A chess TUI implementation
#3Great work! Thank you for sharing this.
Re: A chess TUI implementation
#4It 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
#5It 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
#6Is it using sixels?
Re: A chess TUI implementation
#7I find when learning a language, reading the code for a problem that you already know the rules (or the shape of) really helps.
I think this is probably good project for simply reading the code to learn
Re: A chess TUI implementation
#8It 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
#9Commit 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.
Re: A chess TUI implementation
#10Is it using sixels?
Just standard character drawing blocks. Like how Teletext (if you remember that?) used to do graphics
https://github.com/thomas-mauran/chess-tui/blob/592de110d15c...