LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Is there an Online Chess for Terminal on Linux ? (based on ncurses, noble C lang.) (https://www.linuxquestions.org/questions/linux-games-33/is-there-an-online-chess-for-terminal-on-linux-based-on-ncurses-noble-c-lang-4175582553/)

patrick295767 06-18-2016 01:57 AM

Is there an Online Chess for Terminal on Linux ? (based on ncurses, noble C lang.)
 
Hello,

There are many online chess games, such as pychess, ... for multiplayer online gaming.

The surprise is that there aren't many under the standard terminal, which are well coded and coded in C.

Any inputs would be greatly helpful.

thank you and wishing you a good day.
Pat

malekmustaq 06-18-2016 04:40 AM

Pat, I am a constant chess playing but I have not found yet the one you are seeking.
I wish you can write one :)
I am a member of chess tempo.

Likewise wishing you the best.

malek

ardvark71 06-18-2016 05:04 AM

Quote:

Originally Posted by patrick295767 (Post 5562826)
Any inputs would be greatly helpful.

Hi...

I found this chess game if you have some time and ability to mess around with the code, or create new code. Or how about this one? Neither of them are web based (not sure about multiplayer) but should allow you to play in a terminal. :)

Quote:

Originally Posted by patrick295767 (Post 5562826)
thank you and wishing you a good day.

And to you as well! :)

Regards...

patrick295767 06-18-2016 08:14 AM

Quote:

Originally Posted by malekmustaq (Post 5562856)
Pat, I am a constant chess playing but I have not found yet the one you are seeking.
I wish you can write one :)
I am a member of chess tempo.

Likewise wishing you the best.

malek

It is not a big deal to write one.
The thing that I haven't much idea who you would want one... just give me a wish. Which protocol the chess server uses? I could maybe have a quick look.

ondoho 06-19-2016 04:36 AM

basically you need a chess engine, and an ncurses frontend.
engines: e.g. gnuchess can be played from the terminal.
frontend: https://benkibbey.wordpress.com/cboard/ the only ncurses i can find.

273 06-19-2016 05:27 AM

I googled this and found there's a free internet chess server. There doesn't seem to be source code available though, sadly.

malekmustaq 06-19-2016 11:44 AM

Quote:

The thing that I haven't much idea who you would want one...
That is the point. The software should be aimed at users who 1) prefer to play in ncurses; 2) has a very slow connection, or limited hardware; or 3) does not enjoy so much lipstick on the GUI mode. Should be cross platform and capable of reading PGN files for study.

As for me I think I belong to the # 3) above. But you should find out first the prospective audience if they are worth your effort and time.

Thanks ahead for your concern.

m.m.

notKlaatu 06-19-2016 02:00 PM

If you don't actually care if it's ncurses, but just want it to be visual but not reliant on an X session, then I suggest you look at Emacs chess.

You can get a description of it here: https://github.com/jwiegley/emacs-chess, but the summary is that it's an emacs mode for chess playing; if X is available, it provide a GUI but if not, then it provides a text-based board that looks exactly like this:

Code:

      +---+---+---+---+---+---+---+---+
    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 |
      +---+---+---+---+---+---+---+---+
        a  b  c  d  e  f  g  h

You can play over internet or LAN or against the computer.

You can install this from within Emacs (m-x packages-list-packages); it's called Chess or chess-mode.

273 06-19-2016 02:07 PM

Have you seen this site?

patrick295767 07-02-2016 04:34 PM

Quote:

Originally Posted by notKlaatu (Post 5563350)
If you don't actually care if it's ncurses, but just want it to be visual but not reliant on an X session, then I suggest you look at Emacs chess.

You can get a description of it here: https://github.com/jwiegley/emacs-chess, but the summary is that it's an emacs mode for chess playing; if X is available, it provide a GUI but if not, then it provides a text-based board that looks exactly like this:

Code:

      +---+---+---+---+---+---+---+---+
    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 |
      +---+---+---+---+---+---+---+---+
        a  b  c  d  e  f  g  h

You can play over internet or LAN or against the computer.

You can install this from within Emacs (m-x packages-list-packages); it's called Chess or chess-mode.

the design is pretty cool and confortable to see. on ncurses, one can add colors with fg and keeping a bg black.

the site http://www.tim-mann.org/ics.html is kinda not suckless spirit.


All times are GMT -5. The time now is 03:21 AM.