Join UCI commands

Discussion of chess software programming and technical issues.

Moderator: Ras

Morev
Posts: 4
Joined: Mon Oct 18, 2021 3:58 pm
Full name: Victor Morev

Join UCI commands

Post by Morev »

Can I somehow combine UCI commands and run it like that:
stockfish position startpos e2e4 & go movetime 3000 ?
User avatar
Brunetti
Posts: 424
Joined: Tue Dec 08, 2009 1:37 pm
Location: Milan, Italy
Full name: Alex Brunetti

Re: Join UCI commands

Post by Brunetti »

Morev wrote: Tue Dec 21, 2021 2:56 pm Can I somehow combine UCI commands and run it like that:
stockfish position startpos e2e4 & go movetime 3000 ?
You can write a command file like this:

Code: Select all

position startpos moves e2e4
go movetime 3000
and call it:

Code: Select all

stockfish<file
Alex
Morev
Posts: 4
Joined: Mon Oct 18, 2021 3:58 pm
Full name: Victor Morev

Re: Join UCI commands

Post by Morev »

Brunetti wrote: Tue Dec 21, 2021 3:31 pm You can write a command file like this:

Code: Select all

position startpos moves e2e4
go movetime 3000
and call it:

Code: Select all

stockfish<file
Alex

Thank you!

That works weird.
I get a response immediately:
best move a7a6
User avatar
Brunetti
Posts: 424
Joined: Tue Dec 08, 2009 1:37 pm
Location: Milan, Italy
Full name: Alex Brunetti

Re: Join UCI commands

Post by Brunetti »

Morev wrote: Wed Dec 22, 2021 5:14 am That works weird.
I get a response immediately:
best move a7a6
Yes, strange behavior. Just add a "go" line, and ignore the second result.

Alex
Morev
Posts: 4
Joined: Mon Oct 18, 2021 3:58 pm
Full name: Victor Morev

Re: Join UCI commands

Post by Morev »

Brunetti wrote: Wed Dec 22, 2021 5:35 am
Morev wrote: Wed Dec 22, 2021 5:14 am That works weird.
I get a response immediately:
best move a7a6
Yes, strange behavior. Just add a "go" line, and ignore the second result.

Alex
Great, thanks!