Live data from Hacker News

A chess TUI implementation

github.com

21–30 of 47 posts

Re: A chess TUI implementation

#21
post #12

Earlier quoted context omitted.

lichess is open source and has an android app

Great, thanks for the suggestion. Apparently, Lichess has 'Over the board' feature that allows you to play with your friend offline, nice!

It also has a pretty good chess clock if you have a physical board but want to play timed.

Re: A chess TUI implementation

#22
post #12

Honest question, is there any open source non-subscription based no-frill virtual chess board on Android that allows you to simply play chess offline against human or AI, in the same spirit as VLC on Android?

lichess is open source and has an android app

Written in Scala I believe which makes me love it even more (Scala fan here!).

Re: A chess TUI implementation

#23
Borland Pascal 7 had a chess engine implementation in the EXAMPLES directory. There were two frontends in the same directory: one used OWL to provide a graphical interface in Windows, the other one was for MS-DOS (character-based) using the Turbo Vision library, and it was pretty awesome!

Re: A chess TUI implementation

#24
post #2

Looks 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.

There is a perfectly fine UCI crate available already, so it shouldn't take the author too too long. Unless they intend on implementing it themselves of course. But it's not a terribly complicated protocol either.

Re: A chess TUI implementation

#26

Honest question, is there any open source non-subscription based no-frill virtual chess board on Android that allows you to simply play chess offline against human or AI, in the same spirit as VLC on Android?

Not open source but chess.com app is brilliant, it's a freemium model - you can play for free - but they just keep trying to sell you tip and tutorials.

Also seems to have all the grand masters on there as players, Magnus ignored my request for a game though.

Re: A chess TUI implementation

#28
post #15

what's TUI? T for text?

Or sometimes Terminal, I've seen them used interchangeably though I find “Text” is more common.

Usually TUI is used in a way that implies not just a basic command line interface: something like a GUI (buttons, dialogs, navigable lists, frames, interactive text editing, etc) just drawn using “text” elements so it works via a terminal console. I've seen some people refer to almost any CLI or REPL as a TUI but while they match the words of the acronym (they are user interfaces based on text) I think this is incorrect and TUI refers to a more specific sub-set of text-based interfaces.

See https://en.wikipedia.org/wiki/Text-based_user_interface for more references.

Re: A chess TUI implementation

#30

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)

This gets the correct aspect ratio but the glyphs (on my terminal) look stretched :(
Post reply on HN