Show HN: Termichess – Play chess in your terminal

by krishnasangeethon 10/7/24, 4:43 PMwith 28 comments
by rosmax_1337on 10/7/24, 5:32 PM

Why reinvent a graphical interface in the terminal? If we are playing chess in the terminal, we are likely happy to accept abstractions and such. You could use normal letters for the different pieces, perhaps using lowercase for black and uppercase for white. Even the "grid" could be an optional setting, placing a slight emphasis on user skill in being able to visualize the grid on their own.

    A B C D E F G H
  8 r n b q k b n r
  7 p p p p p p p p
  6
  5
  4
  3
  2 P P P P P P P P
  1 R N B Q K B N R
This to me feels more like truly playing chess in the terminal. Add a non-interactive session mode, for example "chesst game123 view" to produce a view of the game, and "chesst game123 e2 e4" to move the pawn infront of white king two squares up. Naturally moving a piece can by default also print the new board state, after the opponents move. Implicitly prompting you to move again, or to just leave the terminal and do something else.

by Brajeshwaron 10/7/24, 5:13 PM

The unbearable pixel graphics on such a large display make it unplayable. It's a nice one, though. I think I should shrink the size of my terminal window. Or can you make everything smaller? Need Keyboard support.

by kazinatoron 10/7/24, 7:52 PM

In the FOSS world there is a protocol between chess-like board games and user interfaces, the primary examples of which are the XBoard GUI client, and the GNU Chess engine.

If you write an XBoard-compatible terminal client, then it can just work with GNU chess and other back ends.

by sa-codeon 10/7/24, 7:09 PM

Slightly relevant, here's a version of Wordle in the terminal built using go:

https://github.com/sa-/wordle-tui

by TheBlighton 10/7/24, 5:22 PM

Cool but you could always play ASCII chess in your terminal by telnetting into FICS.

by pwnOrbitalson 10/7/24, 6:07 PM

On that same note, is there also an app to play chess wrong in my terminal ?

by pixelmaniaon 10/7/24, 6:02 PM

Fantastic work on Termichess!

by FergusArgyllon 10/7/24, 5:13 PM

The opening in your demo is disgusting, way to ruin a Sicilian....

Very cool program though :)

by anthkon 10/7/24, 5:47 PM

gnuchess did it before, and better. Also, telnet freshchess.org 5000. FICS rules.