Cutochess cli

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Ferdy
Posts: 4851
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Cutechess cli Doesn't run

Post by Ferdy »

JohnW wrote: Sun Mar 14, 2021 6:11 pm
bastiball wrote: Sun Mar 14, 2021 5:45 pm Cutechess cli for windows doesn't run on me but the GUI does run. I dunno what is the problem.
I am trying to create an application that automatically creates random matches between engines and works like a screensaver when my computer is idle. So an api to the gui would make it much easier to define all their parameters.

cutechess cli works correctly for me but it's a pain to set all the parameters for each engine especially when there is no standards. For example most engines have a "Threads" parameter but an engine like Rybka 3 calls it "Max CPUs" and it's case sensitive for some reason. Engines like the Komodo has numerous parameters and if you have many versions it takes a long time to do.
Engine settings can be defined in engines.json file which the cli can then read.
You can define 2 engines for example via their name in the json file.
-engine conf="sf13" -engine conf="komodo"
The engine uci options are defined in json file.
Krzysztof Grzelak
Posts: 1585
Joined: Tue Jul 15, 2014 12:47 pm

Re: Cutochess cli

Post by Krzysztof Grzelak »

These commands never worked for me -engine conf="sf13" -engine conf="komodo"
JohnW
Posts: 402
Joined: Thu Nov 22, 2012 12:20 am
Location: New Hampshire

Re: Cutechess cli Doesn't run

Post by JohnW »

Ferdy wrote: Sun Mar 14, 2021 7:16 pm
JohnW wrote: Sun Mar 14, 2021 6:11 pm
bastiball wrote: Sun Mar 14, 2021 5:45 pm Cutechess cli for windows doesn't run on me but the GUI does run. I dunno what is the problem.
I am trying to create an application that automatically creates random matches between engines and works like a screensaver when my computer is idle. So an api to the gui would make it much easier to define all their parameters.

cutechess cli works correctly for me but it's a pain to set all the parameters for each engine especially when there is no standards. For example most engines have a "Threads" parameter but an engine like Rybka 3 calls it "Max CPUs" and it's case sensitive for some reason. Engines like the Komodo has numerous parameters and if you have many versions it takes a long time to do.
Engine settings can be defined in engines.json file which the cli can then read.
You can define 2 engines for example via their name in the json file.
-engine conf="sf13" -engine conf="komodo"
The engine uci options are defined in json file.
Ok, I will have to try that then. Thank you..
bastiball
Posts: 5360
Joined: Tue Oct 20, 2020 4:18 am
Full name: Basti Dangca

Re: Cutechess cli Doesn't run

Post by bastiball »

JohnW wrote: Sun Mar 14, 2021 6:11 pm
bastiball wrote: Sun Mar 14, 2021 5:45 pm Cutechess cli for windows doesn't run on me but the GUI does run. I dunno what is the problem.
I am trying to create an application that automatically creates random matches between engines and works like a screensaver when my computer is idle. So an api to the gui would make it much easier to define all their parameters.

cutechess cli works correctly for me but it's a pain to set all the parameters for each engine especially when there is no standards. For example most engines have a "Threads" parameter but an engine like Rybka 3 calls it "Max CPUs" and it's case sensitive for some reason. Engines like the Komodo has numerous parameters and if you have many versions it takes a long time to do.
Good luck for that application I like & understand your idea and I hope I can use it :D
Basti Dangca
CCRL testing group
JohnW
Posts: 402
Joined: Thu Nov 22, 2012 12:20 am
Location: New Hampshire

Re: Cutechess cli Doesn't run

Post by JohnW »

Ferdy wrote: Sun Mar 14, 2021 7:16 pm
JohnW wrote: Sun Mar 14, 2021 6:11 pm
bastiball wrote: Sun Mar 14, 2021 5:45 pm Cutechess cli for windows doesn't run on me but the GUI does run. I dunno what is the problem.
I am trying to create an application that automatically creates random matches between engines and works like a screensaver when my computer is idle. So an api to the gui would make it much easier to define all their parameters.

cutechess cli works correctly for me but it's a pain to set all the parameters for each engine especially when there is no standards. For example most engines have a "Threads" parameter but an engine like Rybka 3 calls it "Max CPUs" and it's case sensitive for some reason. Engines like the Komodo has numerous parameters and if you have many versions it takes a long time to do.
Engine settings can be defined in engines.json file which the cli can then read.
You can define 2 engines for example via their name in the json file.
-engine conf="sf13" -engine conf="komodo"
The engine uci options are defined in json file.
Just to clarify for anyone interested, the engines.json file is automatically created when you add engines in the gui.
The file is located in C:\Users\[user]\AppData\Roaming\cutechess.
I thought I had to create the file manually which would be a pain for hundreds of engines.
Krzysztof Grzelak
Posts: 1585
Joined: Tue Jul 15, 2014 12:47 pm

Re: Cutochess cli

Post by Krzysztof Grzelak »

And what works for you this file.
JohnW
Posts: 402
Joined: Thu Nov 22, 2012 12:20 am
Location: New Hampshire

Re: Cutochess cli

Post by JohnW »

Krzysztof Grzelak wrote: Tue Mar 16, 2021 4:30 pm And what works for you this file.
Well after copying the engines.json file to the same directory as the cutechess-cli.exe I did a simple test and was able to run a game using:

cutechess-cli -engine conf="Rybka 3" -engine conf="texel 1.08 64bmi" -each tc=40/1:00+1
Krzysztof Grzelak
Posts: 1585
Joined: Tue Jul 15, 2014 12:47 pm

Re: Cutochess cli

Post by Krzysztof Grzelak »

JohnW wrote: Tue Mar 16, 2021 6:19 pm
Krzysztof Grzelak wrote: Tue Mar 16, 2021 4:30 pm And what works for you this file.
Well after copying the engines.json file to the same directory as the cutechess-cli.exe I did a simple test and was able to run a game using:

cutechess-cli -engine conf="Rybka 3" -engine conf="texel 1.08 64bmi" -each tc=40/1:00+1
Thank you for your answer JohnW. I have such a question, just how to create such a file.
Krzysztof Grzelak
Posts: 1585
Joined: Tue Jul 15, 2014 12:47 pm

Re: Cutochess cli

Post by Krzysztof Grzelak »

Huge request to Ferdy. Can you make a file json (two engines free) and share it. I still have a problem with the file json. Thank you in advance Ferdy.
ydebilloez
Posts: 186
Joined: Tue Jun 27, 2017 11:01 pm
Location: Lubumbashi
Full name: Yves De Billoëz

Re: Cutochess cli

Post by ydebilloez »

Just grab a file from: https://sourceforge.net/projects/belofte/files/dist/
You can look at the different scripts in the test folder to see how it is called.
Yves De Billoëz @ macchess belofte chess
Once owner of a Mephisto I, II, challenger, ... chess computer.