supporting FRC questions

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Re: supporting FRC questions

Postby Engin Üstün » 16 Sep 2006, 23:54

engine:
variant=fischerandom


sorry thats send the GUI!
Engin Üstün
 
Posts: 15
Joined: 21 Jul 2005, 21:39
Location: Germany

Re: supporting FRC questions

Postby Uri Blass » 17 Sep 2006, 10:39

unfortunately it does not help
Winboard simply does not tell the Movei about the opening position
and when it tell it new movei starts a new game in standard chess.

Note that even if movei gets a fen and later get new movei is going to assume that new is for normal chess but movei simply never gets a fen.


Here is the code that I have in movei to respond to the winboard command(old code is commented out)

Code: Select all
char c='"';
                        
                        

                         Print("feature setboard=1 draw=0 analyze=1 ping=1 variants=");
                         Print("%c",c);
                         Print("normal,fischerandom");
                         Print("%c",c);
                         Print(" done=1\n");



   
                     //    Print("feature setboard=1 draw=0 analyze=1 ping=1 done=1\n");



1)Here is winboard.debug

recognized 'fischerandom' (-1) as variant fischerandom
WinBoard 4.2.7 + movei
Reset(1, 0) from gameMode 0
recognized 'fischerandom' (-1) as variant fischerandom
GameEnds(0, (null), 2)
StartChildProcess (dir="") movei
515 >first : xboard
protover 2
531 <first : 5-men endgame table bases found, 10.289 MB used for decompression tables
531 <first : Using 8.000 MB cache for TBs
531 <first :
531 <first : for perft on epd file you need to print perftepd and after it space andthe following list of 4 variables with spaces between themThe varaibles are the depth and the name of the input filethe name of the outfile and the frequency that you get input
531 <first : the frequency needs to be some number 2^n-1for example 2^13-1=8191 means that you see output every 8192 positionsthe output is both in the screen and in the output filewaiting for xboard command
531 <first :
531 <first : feature setboard=1 draw=0 analyze=1 ping=1 variants="normal,fischerandom" done=1
531 >first : accepted setboard
531 >first : accepted draw
531 >first : accepted analyze
531 >first : accepted ping
531 >first : accepted variants
531 >first : accepted done
531 <first : Error (unknown command): accepted
531 <first : Error (unknown command): accepted
531 <first : Error (unknown command): accepted
531 <first : Error (unknown command): accepted
531 <first : Error (unknown command): accepted
531 <first : Error (unknown command): accepted
546 >first : new
random
546 >first : variant fischerandom
546 >first : level 40 5 0
546 >first : post
546 >first : hard
546 >first : ping 1
546 <first : Error (unknown command): random
546 <first : pong 1




2)logfile of movei show that winboard never sent movei
the setboard command to give it fen

Here is the logfile of movei

no problem in allocating hash evaluation tablesno problem in allocating hash tablesstarting user inputinput varaibles were startedstarting loop winboard commandsgot message maybe xboard commandonly to log main lines 1082-1083 got winboard command xboard
xboard commandonly to log main lines 1082-1083 got winboard command protover
feature setboard=1 draw=0 analyze=1 ping=1 variants="normal,fischerandom" done=1
only to log main lines 1082-1083 got winboard command accepted
Error (unknown command): accepted
only to log main lines 1082-1083 got winboard command accepted
Error (unknown command): accepted
only to log main lines 1082-1083 got winboard command accepted
Error (unknown command): accepted
only to log main lines 1082-1083 got winboard command accepted
Error (unknown command): accepted
only to log main lines 1082-1083 got winboard command accepted
Error (unknown command): accepted
only to log main lines 1082-1083 got winboard command accepted
Error (unknown command): accepted
only to log main lines 1082-1083 got winboard command new
0 only to log main lines 1082-1083 got winboard command random
Error (unknown command): random
only to log main lines 1082-1083 got winboard command variant
only to log main lines 1082-1083 got winboard command level

one time control 40 moves to 300 seconds

only to log main lines 1082-1083 got winboard command post
only to log main lines 1082-1083 got winboard command hard
only to log main lines 1082-1083 got winboard command ping
pong 1
User avatar
Uri Blass
 
Posts: 727
Joined: 09 Oct 2004, 05:59
Location: Tel-Aviv

Re: supporting FRC questions

Postby Engin Üstün » 17 Sep 2006, 16:00

the current winboard_x is not ready for FRC play i think, this is full of bug at the moment.
you must wait for official release of winboard_x FRC

the best, take for a while the Arena to debugging as winboard modus.

i have tryed this with winboard_x : tornado against glaurung

winboard_x.exe -lpf chess960.epd -lpi 123 -variant fischerandom /mg 10 /cp /fcp="polyglot.exe tornado.ini" /fd="Tornado" /scp="polyglot.exe glaurung.ini" /sd="Glaurung"

-lpf is the file name of chess960.epd, -lpi is the position you have to select from startpositions
Engin Üstün
 
Posts: 15
Joined: 21 Jul 2005, 21:39
Location: Germany

Re: supporting FRC questions

Postby Uri Blass » 17 Sep 2006, 16:04

You may be right that winboard does not support FRC correctly and I wonder if there are engines that can play it under winboard not as UCI engines.

I still did not implement UCI support in movei and I wanted it to play as winboard engine under winboard.

Uri
User avatar
Uri Blass
 
Posts: 727
Joined: 09 Oct 2004, 05:59
Location: Tel-Aviv

Re: supporting FRC questions

Postby Uri Blass » 17 Sep 2006, 16:49

I found a way to play an FRC game under winboard against latest private movei

You only need to start a new frc game but after starting it you need to choose
file->copy position to clipboard and after it
file->paste position to clipboard

After doing it you can play FRC game between engines or between
engine and human(I did not check if I can play between movei and other engines in that way but I checked that it is possible to play movei against itself)

Uri
User avatar
Uri Blass
 
Posts: 727
Joined: 09 Oct 2004, 05:59
Location: Tel-Aviv

Re: supporting FRC questions

Postby Uri Blass » 17 Sep 2006, 16:58

I was too early to believe that it is possible

Movei tried to castle short castle 17...0-0 and wrote 0-0 but
winboard did not allow it
It allows castling in engine-human game from the relevant position

Here is the game copied from the winboard interface by asking winboard to copy game(it does not include 17...0-0 because winboard did not understand it.

In second game Hermann was the victim who tried to castle when winboard did not allow it:

[Event "Computer Chess Game"]
[Site "URI-AMD"]
[Date "2006.09.17"]
[Round "-"]
[White "movei"]
[Black "movei"]
[Result "1-0"]
[TimeControl "40/300"]
[Variant "fischerandom"]
[FEN "bbqnnrkr/pppppppp/8/8/8/8/PPPPPPPP/BBQNNRKR w HFhf - 0 1"]
[SetUp "1"]

{--------------
b b q n n r k r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
B B Q N N R K R
white to play
--------------}
1. c4 c5 2. Ne3 Nf6 3. Nf3 Ne6 4. b3 b6 5. Re1 Re8 6. Nf5 Bc6 7. d4 cxd4 8.
N3xd4 Qb7 9. e4 Bf4 10. Qa3 Nxd4 11. Nxe7+ Rxe7 12. Qxe7 Ne6 13. g3 Bd2 14.
Re2 Bh6 15. Bxf6 gxf6 16. Qxf6 Bg7 17. Qh4
{Forfeit due to illegal move} 1-0

[Event "Computer Chess Game"]
[Site "URI-AMD"]
[Date "2006.09.17"]
[Round "-"]
[White "movei"]
[Black "Hermann 1.7"]
[Result "1-0"]
[TimeControl "40/300"]
[Variant "fischerandom"]
[FEN "bbqnnrkr/pppppppp/8/8/8/8/PPPPPPPP/BBQNNRKR w HFhf - 0 1"]
[SetUp "1"]

{--------------
b b q n n r k r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
B B Q N N R K R
white to play
--------------}
1. c4 c5 2. Ne3 e6 3. b3 b6 4. d4 cxd4 5. Bxd4 f5 6. Qb2 Nc6 7. Bc3 Nf6 8.
Nf3 Bf4 9. Rd1 Rf7 10. Nf1 Ne4 11. e3 Nxc3 12. Qxc3 Bc7 13. e4 Ne7 14. Ng3
fxe4 15. Ng5 Rf6 16. Bxe4 Bxe4 17. N5xe4 Rh6 18. Nd6 Qb8 19. Nge4 Nf5 20.
c5
{Forfeit due to illegal move} 1-0
User avatar
Uri Blass
 
Posts: 727
Joined: 09 Oct 2004, 05:59
Location: Tel-Aviv

Previous

Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 10 guests