Nocheto Client

Nochetoclient is a console application, which connects to your running nocheto. Its purpose is to show chess board, moves tree and/or graph on another console window, which allows you, for example, increase font in console with nocheto (to see big chess board), while keeping small fonts for moves tree.

Nochetoclient can also run engine and show best moves / lines for current position given by nocheto.

nochetoclient screenshot

Nochetoclient cannot send commands back to nocheto and there are any commands for nochetoclient. You cannot use client to play with someone else through internet.

Connecting client to nocheto

First, you need to run ipv4 command in nocheto, which causes nocheto to wait for client. ipv4 command can have as argument PORT number, which is a number between 1024 and 65535 (default 8001). Use whatever number you want, you just need to use the same number with the client.

ipv4 command

Now you can run client with the same port number as argument. Client reads first ~/.nocheto/configs/nocheto.ini configuration file, then ~/.nocheto/configs/client.ini. The client.ini file doesn't exists by default, but you can create it to change what part of user interface should client show (compared to nocheto). See configuration for more information.

Run nochetoclient -p PORT.

run client

If you want the client runs chess engine and analyzes your position, run nochetoclient --mode=analyze -p PORT.
You must call ipv4 command in nocheto for every client. (You can call ipv4 command with different PORT number, but it can be the same.)

run analyze client live chess analyze

If you close nocheto, all connected clients will end too.
If you want to close (one of the) client(s), you can use CTRL+C, or simply close the window :-).

Content of client.ini

This is my favorite client.ini content:

[board]
boardtype=utf8
autoboard= 1
viewgraph = 1
viewtree=1
viewtreeheight = 35
viewboard= 0
viewmoves = 0
viewvariants = 0
viewfen = 0
viewopening = 0
viewcoordinates = 0
viewexplorer = 0
expandtree = 1
actualmove_l = >>>
actualmove_r = <<<
actualmove_color =  44

[console]
speach = false
whitecolor =
blackcolor = 31
boardcolor =
movecolor = 33

It enables moves tree (viewtree=1) and graph of moves strength (viewgrap=1), set some colors and disable almost everything else.

Just save this content to ~/.nocheto/configs/client.ini. You can use any of yours favorite text editors.

Threre is almost nothing you can configure within ini file for client running analyze (--mode=analyze). All I can think of are engine and threads values in [engine] section.

Using nocheto and nochetoclient with screen

Screen is a program which can divide your console window into several parts. It can by used to see nochetoclient analyzing actual chess position in the same window as you run nocheto.

If you want to open nocheto and nochetoclient with one command, you can create screenrc file like this:

#blankerprg cmatrix -ab -u2
#idle 240 blanker
hardstatus alwayslastline "[%H] %w %=%D %d %M %c:%s %Y"
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
scrollback 1000
focus
screen
title nocheto
exec nocheto --ipv4
split
focus
screen
resize 5
title "nochetoclient -p 8001 --mode analyze"
exec nochetoclient -p 8001 --mode analyze
focus

Save it somewhere (for example into ~/.nocheto/screenrc). Then you can run screen -c ~/.nocheto/screenrc which runs nocheto in top window and nochetoclient in analyze mode in bottom window.

nocheto and nochetoclient in screen

Unfortunatelly, there is some weird bug in screen, which causes nocheto not be able to recognize change of screen size. Normaly, the size of moves tree (and other UI elements) adjust their size to the console size. But if you run nocheto as described above, it gets the right size on start, but doesn't get any new size if you change the console window. So, be sure your console size is well adjusted before you run the command.

If you run screen without this config file and then you creates window in it and run nocheto and client "by hand", this problem does not occure.