TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Termichess – Play chess in your terminal

50 pointsby krishnasangeeth8 months ago
Hey everyone,<p>I have been trying to build a terminal based app for sometime now and this is an attempt at trying to build a chess app that one can play right inside terminal.<p>I was inspired by `chess-tui`[1] which is a rust based project and was looking to build something similar using python. Luckily I stumbled upon textual[2] recently and it made my task of building this far more easier than I thought.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;thomas-mauran&#x2F;chess-tui">https:&#x2F;&#x2F;github.com&#x2F;thomas-mauran&#x2F;chess-tui</a> [2] <a href="https:&#x2F;&#x2F;github.com&#x2F;textualize&#x2F;textual">https:&#x2F;&#x2F;github.com&#x2F;textualize&#x2F;textual</a>

9 comments

rosmax_13378 months ago
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 &quot;grid&quot; could be an optional setting, placing a slight emphasis on user skill in being able to visualize the grid on their own.<p><pre><code> 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 </code></pre> This to me feels more like truly playing chess in the terminal. Add a non-interactive session mode, for example &quot;chesst game123 view&quot; to produce a view of the game, and &quot;chesst game123 e2 e4&quot; 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.
评论 #41768594 未加载
评论 #41769105 未加载
评论 #41770667 未加载
评论 #41768699 未加载
评论 #41769201 未加载
Brajeshwar8 months ago
The unbearable pixel graphics on such a large display make it unplayable. It&#x27;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.
评论 #41769915 未加载
kazinator8 months ago
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.<p>If you write an XBoard-compatible terminal client, then it can just work with GNU chess and other back ends.
sa-code8 months ago
Slightly relevant, here&#x27;s a version of Wordle in the terminal built using go:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;sa-&#x2F;wordle-tui">https:&#x2F;&#x2F;github.com&#x2F;sa-&#x2F;wordle-tui</a>
评论 #41770964 未加载
TheBlight8 months ago
Cool but you could always play ASCII chess in your terminal by telnetting into FICS.
pwnOrbitals8 months ago
On that same note, is there also an app to play chess <i>wrong</i> in my terminal ?
评论 #41769183 未加载
pixelmania8 months ago
Fantastic work on Termichess!
FergusArgyll8 months ago
The opening in your demo is disgusting, way to ruin a Sicilian....<p>Very cool program though :)
评论 #41769153 未加载
评论 #41768422 未加载
anthk8 months ago
gnuchess did it before, and better. Also, telnet freshchess.org 5000. FICS rules.