News for hackers. Stuff that matters.
Re:Show HN: Termichess – Play chess in your terminal by shagie on Monday October 07, 2024 @01:42PM (#41768699)
> 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.

As a starting point (and only a few because this gets long and tedious to show) - it uses tput ( https://man7.org/linux/man-pages/man1/tput.1p.html https://www.gnu.org/software/termutils/manual/termutils-2.0/... )

    #!/bin/bash
    
    echo    '  A B C D E F G H'
    echo -n '1 '
    tput mr
    echo -n 'r'
    tput me
    echo -n ' n '
    tput mr
    echo -n 'b'
    tput me
    echo
Re:Show HN: Termichess – Play chess in your terminal by rosmax_1337 on Monday October 07, 2024 @01:49PM (#41768792)
I'm going to assume this produces a grid. Once again, we are reinventing a graphical user interface. If we wanted all this, why wouldn't we open firefox and go to chess.com or lichess.org. Or even something that runs natively on your computer, perhaps even producing lavish and beautiful 2d or 3d rendering of the game.