UCI commands question

Code, algorithms, languages, construction...
Post Reply
mkpatil
Posts: 2
Joined: Thu Jan 12, 2012 5:36 pm
Real Name: Milind Patil

UCI commands question

Post by mkpatil » Thu Jan 12, 2012 5:47 pm

I am very new to this and trying to use the UCI commands from windows command prompt. I am just making moves one at a time with occasional 'go move' to get the next move from the engine. The question is how can I make the second, third ... moves easily. The following seems to be working - only thing we have to send the all the moves from start position every time:

position startpos moves g1h3
d
position startpos moves g1h3 a7a6
d
position startpos moves g1h3 a7a6 b1c3
d
position startpos moves g1h3 a7a6 b1c3 b8c6
d
position startpos moves g1h3 a7a6 b1c3 b8c6 a2a3
d

Is there any easier command to move from the current position to the next move instead of listing 'all' the moves from start posistion?
Something like the following (this did not work)

position startpos moves g1h3
position moves a7a6
position moves b1c3
position moves b8c6
position moves a2a3

OR atleast like the following (this did not work)

position startpos moves g1h3
position rnbqkbnr/pppppppp/8/8/8/7N/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves a7a6
position rnbqkbnr/1ppppppp/p7/8/8/7N/PPPPPPPP/RNBQKB1R w KQkq - 0 1 moves b1c3
position rnbqkbnr/1ppppppp/p7/8/8/2N4N/PPPPPPPP/R1BQKB1R b KQkq - 1 1 moves b8c6
position r1bqkbnr/1ppppppp/p1n5/8/8/2N4N/PPPPPPPP/R1BQKB1R w KQkq - 2 1 moves a2a3

Thank you for your time,
Regards, mkpatil

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: UCI commands question

Post by Jeremy Bernstein » Thu Jan 12, 2012 7:16 pm

mkpatil wrote:position rnbqkbnr/pppppppp/8/8/8/7N/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves a7a6
position rnbqkbnr/1ppppppp/p7/8/8/7N/PPPPPPPP/RNBQKB1R w KQkq - 0 1 moves b1c3
position rnbqkbnr/1ppppppp/p7/8/8/2N4N/PPPPPPPP/R1BQKB1R b KQkq - 1 1 moves b8c6
position r1bqkbnr/1ppppppp/p1n5/8/8/2N4N/PPPPPPPP/R1BQKB1R w KQkq - 2 1 moves a2a3
position fen r1bqkbnr/1ppppppp/p1n5/8/8/2N4N/PPPPPPPP/R1BQKB1R w KQkq - 2 1 moves a2a3

is correct.

jb

mkpatil
Posts: 2
Joined: Thu Jan 12, 2012 5:36 pm
Real Name: Milind Patil

Re: UCI commands question

Post by mkpatil » Thu Jan 12, 2012 7:29 pm

Thanks Jeremy, it worked!

Post Reply