Crafty 23.1 (JA) oddities

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Crafty 23.1 (JA) oddities

Post by Dirt »

If I'm seeing things correctly, Crafty now shows scores from the computers point of view instead of white's. This perhaps deserved a mention in main.c to record when the scoring changed from being from whites viewpoint.

When Crafty is black, ahead, and shows a one move PV ending in an exclamation mark, the score is shown as negative in the Winboard display. All other lines show a positive score, because black (Crafty) is ahead. The negative evaluation is not shown in the log file, although the evaluations in the long PV lines are.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.1 (JA) oddities

Post by bob »

Dirt wrote:If I'm seeing things correctly, Crafty now shows scores from the computers point of view instead of white's. This perhaps deserved a mention in main.c to record when the scoring changed from being from whites viewpoint.
Doesn't do this. If it does, something is broken in the compiler he used. Crafty has been a white POV program for many years and I have no plans to change it.

When Crafty is black, ahead, and shows a one move PV ending in an exclamation mark, the score is shown as negative in the Winboard display. All other lines show a positive score, because black (Crafty) is ahead. The negative evaluation is not shown in the log file, although the evaluations in the long PV lines are.
Can you either post or email me an example? 23.1 played in the recent ACCA event and showed no such behavior. Might be an issue with winboard perhaps. Or with the compiler. But not Crafty.
maschmdt
Posts: 13
Joined: Sat Feb 23, 2008 8:07 pm

Re: Crafty 23.1 (JA) oddities

Post by maschmdt »

Most likely you're using the UCI version of Jim's Crafty build which done via the Wb2Uci adapter. It has an option WhiteScore which is false by default. Either add

Code: Select all

WhiteScore=true
to the Wb2Uci.eng file or check WhiteScore in the UCI options dialogue of your GUI.

Hope it helps.
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Re: Crafty 23.1 (JA) oddities

Post by Dirt »

bob wrote:
Dirt wrote:If I'm seeing things correctly, Crafty now shows scores from the computers point of view instead of white's. This perhaps deserved a mention in main.c to record when the scoring changed from being from whites viewpoint.
Doesn't do this. If it does, something is broken in the compiler he used. Crafty has been a white POV program for many years and I have no plans to change it.

When Crafty is black, ahead, and shows a one move PV ending in an exclamation mark, the score is shown as negative in the Winboard display. All other lines show a positive score, because black (Crafty) is ahead. The negative evaluation is not shown in the log file, although the evaluations in the long PV lines are.
Can you either post or email me an example? 23.1 played in the recent ACCA event and showed no such behavior. Might be an issue with winboard perhaps. Or with the compiler. But not Crafty.
Here's the engine out screen from Winboard:
Image
This is what looks to be the relevant part of the log file:

Code: Select all

White(9): time 10961
time remaining:   1:49 (Crafty).
White(9): otim 7118
time remaining:   1:11 (opponent).
White(9): Nd2
              time used:   9.72
              time surplus  13.61  time limit 3.42 (+0.00) (20.52)
              depth   time  score   variation (1)
                1     0.02   5.58   9. ... O-O
                1->   0.02   5.58   9. ... O-O
                2     0.02   5.31   9. ... O-O 10. Qa4 c5 11. O-O-O Bxd2+
                                    12. Bxd2 cxd4 13. Bd3 <HT>
                2->   0.02   5.31   9. ... O-O 10. Qa4 c5 11. O-O-O Bxd2+
                                    12. Bxd2 cxd4 13. Bd3 <HT>
                3     0.02   5.31   9. ... O-O 10. Qa4 c5 11. O-O-O Bxd2+
                                    12. Bxd2 cxd4 13. Bd3 <HT>
                3->   0.02   5.31   9. ... O-O 10. Qa4 c5 11. O-O-O Bxd2+
                                    12. Bxd2 cxd4 13. Bd3 <HT>
                4     0.02   5.31   9. ... O-O 10. Qa4 c5 11. O-O-O Bxd2+
                                    12. Bxd2 cxd4 13. Bd3 <HT>
                4     0.02     -1   9. ... Bxd2+!                    
                4     0.02   5.86   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O
                4->   0.02   5.86   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O
                5     0.02   5.57   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    Bg4 12. f3
                5->   0.02   5.57   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    Bg4 12. f3
                6     0.03   5.64   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Na6
                6->   0.03   5.64   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Na6
                7     0.04   5.60   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Na6 13. h4
                7->   0.04   5.60   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Na6 13. h4
                8     0.06   5.58   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Bg4 13. f3 Nxd2 14. Qxd2
                8->   0.08   5.58   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Bg4 13. f3 Nxd2 14. Qxd2
                9     0.12   5.60   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Bg4 13. f3 Nxd2 14. Rxd2
                9->   0.22   5.60   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Bg4 13. f3 Nxd2 14. Rxd2
               10     0.32   5.56   9. ... Bxd2+ 10. Bxd2 Qxd4 11. Qe2
                                    O-O 12. Rd1 Rd8 13. Qe3 Bg4 14. Qxd4
                                    Rxd4
               10     0.63     -1   9. ... O-O!                    
               10     0.78   6.12   9. ... O-O 10. Qa4 a5 11. Be2 Nxd2
                                    12. Bxd2 Bxd2+ 13. Kxd2 b5 14. Qb3
                                    Qxd4+ 15. Ke1
               10->   0.87   6.12   9. ... O-O 10. Qa4 a5 11. Be2 Nxd2
                                    12. Bxd2 Bxd2+ 13. Kxd2 b5 14. Qb3
                                    Qxd4+ 15. Ke1
               11     2.22   5.80   9. ... O-O 10. Bd3 Bxd2+ 11. Bxd2 Qxd4
                                    12. Be3 Qxb2 13. O-O Rd8 14. Qe2 Qxe2
                                    15. Bxe2
               11->   2.68   5.80   9. ... O-O 10. Bd3 Bxd2+ 11. Bxd2 Qxd4
                                    12. Be3 Qxb2 13. O-O Rd8 14. Qe2 Qxe2
                                    15. Bxe2
               12     3.40   5.83   9. ... O-O 10. Bd3 Bxd2+ 11. Bxd2 Qxd4
                                    12. Be3 Qxb2 13. Bxe4 Qb4+ 14. Qd2
                                    Qxe4 15. O-O Re8 16. Rfe1
              time=3.54  mat=-3  n=3468486  fh=93%  nps=979K
              extensions=113K qchecks=118K reduced=328K pruned=1.5M
              predicted=5  evals=1.4M  50move=3  EGTBprobes=0  hits=0
              SMP->  splits=0  aborts=0  data=0/65536  elap=3.54
Black&#40;9&#41;&#58; O-O
              time used&#58;   3.54

       +---+---+---+---+---+---+---+---+
    8  |<R>|<N>|<B>|<Q>|   |<R>|<K>| . |
       +---+---+---+---+---+---+---+---+
    7  |<P>|<P>| . |   | . |<P>|<P>|<P>|
       +---+---+---+---+---+---+---+---+
    6  |   | . |<P>| . |   | . |   | . |
       +---+---+---+---+---+---+---+---+
    5  | . |   | . |   | . |   | . |   |
       +---+---+---+---+---+---+---+---+
    4  |   |<B>|   |-P-|<N>| . |   | . |
       +---+---+---+---+---+---+---+---+
    3  | . |   | . |   |-B-|   | . |   |
       +---+---+---+---+---+---+---+---+
    2  |-P-|-P-|   |-N-|   |-P-|-P-|-P-|
       +---+---+---+---+---+---+---+---+
    1  |-R-|   | . |-Q-|-K-|-B-| . |-R-|
       +---+---+---+---+---+---+---+---+
         a   b   c   d   e   f   g   h

White&#40;10&#41;&#58; result * &#123;xboard exit&#125;
Updating book database
White&#40;10&#41;&#58; force
White&#40;10&#41;&#58; ping 4
pong 4
White&#40;10&#41;&#58; quit
I have check that Crafty 23.1 shows this type of output in either Winboard 4.3.15j or Winboard 4.4.0.
Crafty 23.0 did not do this.

I'm glad that Crafty is still supposed to show the score from white's viewpoint.
User avatar
Jim Ablett
Posts: 1383
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 23.1 (JA) oddities

Post by Jim Ablett »

Might be an issue with winboard perhaps. Or with the compiler. But not Crafty.
No issue is with me :)

I changed it to computer's point of view for myself (I prefer it),
but left the changes in to release compile by mistake.

Correct version will be replaced shortly.

My apologies,

Jim.
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Re: Crafty 23.1 (JA) oddities

Post by Dirt »

maschmdt wrote:Most likely you're using the UCI version of Jim's Crafty build which done via the Wb2Uci adapter. It has an option WhiteScore which is false by default. Either add

Code: Select all

WhiteScore=true
to the Wb2Uci.eng file or check WhiteScore in the UCI options dialogue of your GUI.

Hope it helps.
No, I'm using crafty_231_ja.exe from "speed compiles\win32". Maybe Peter's version works differently, but it doesn't run on my machine.
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Re: Crafty 23.1 (JA) oddities

Post by Dirt »

Jim Ablett wrote:
Might be an issue with winboard perhaps. Or with the compiler. But not Crafty.
No issue is with me :)

I changed it to computer's point of view for myself (I prefer it),
but left the changes in to release compile by mistake.

Correct version will be replaced shortly.

My apologies,

Jim.
I'm glad that's cleared up.

Thanks for providing the executables.
User avatar
Jim Ablett
Posts: 1383
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 23.1 (JA) oddities

Post by Jim Ablett »

Corrected now. New link >

http://www.mediafire.com/?mdjmckwwgtl

Jim.
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Crafty 23.1 (JA) oddities

Post by hgm »

Note that WinBoard has options -firstScoreAbs true|false / -secondScoreAbs true|false to correct the scores of such non-compliant engines, which can also be set through the "Options -> Adjudications..." menu dialog.
User avatar
mhull
Posts: 13447
Joined: Wed Mar 08, 2006 9:02 pm
Location: Dallas, Texas
Full name: Matthew Hull

Re: Crafty 23.1 (JA) oddities

Post by mhull »

hgm wrote:Note that WinBoard has options -firstScoreAbs true|false / -secondScoreAbs true|false to correct the scores of such non-compliant engines, which can also be set through the "Options -> Adjudications..." menu dialog.
Non-white-POV programs should be considered non-compliant, for the same reason non-white-POV chess diagrams are non-compliant.
Matthew Hull