The two crafties to have

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

Moderator: Ras

Dann Corbit
Posts: 12791
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

The two crafties to have

Post by Dann Corbit »

Besides crafty 23.1, crafty 20.0 was the last one to have wall detection for positions like WAC.230:
[d]2b5/1r6/2kBp1p1/p2pP1P1/2pP4/1pP3K1/1R3P2/8 b - - bm Rb4;

Here is a demo that shows 20.0 is worth keeping for analysis of closed positions. You will notce at the end that not only has crafty found the correct move but also Alex Szabo's refutation (though the score does not yet reflect this).

Code: Select all

c:\chess\winboard\crafty23>crafty-23.1.exe
EPD Kit revision date: 1996.04.21
found computer opening book file [./bookc.bin].

Initializing multiple threads.
System is SMP, not NUMA.
hash table memory = 1024M bytes.
pawn hash table memory =   64M bytes.
EGTB cache memory =   32M bytes.
choose from book moves randomly (using weights.)
choose from 5 best moves.
book learning enabled
resign after 5 consecutive moves with score < -9.
EGTB access enabled
using tbpath=c:\chess\winboard\Nalimov
6 piece tablebase files found
80229kb of RAM used for TB indices and decompression tables
max threads set to 4.

Crafty v23.1 (4 cpus)

White(1): hash 4096M
hash table memory = 4096M bytes.
White(1): st 999
search time set to 999.00.
White(1): epdpfga \test\wac230.epd wac230.out
PFGA: EPD record: 1   ID: WAC.230
              time surplus   0.00  time limit 16:39 (+0.00) (16:39)
              depth   time  score   variation (1)
starting thread 1
starting thread 2
starting thread 3
               12->   0.10  -2.56   1. ... a4 2. Kf4 Rh7 3. Ba3 Ba6 4.
                                    Ke3 Rh3+ 5. f3 Rh1 6. Kf4 Rh5 7. Bc5
                                    Rh1
               13     0.13  -2.53   1. ... a4 2. Kf4 Rh7 3. f3 Ba6 4. Ba3
                                    Rh5 5. Bf8 Bb5 6. Ba3 Rh4+ 7. Ke3 Rh1
                                    8. Kf4
               13->   0.18  -2.53   1. ... a4 2. Kf4 Rh7 3. f3 Ba6 4. Ba3
                                    Rh5 5. Bf8 Bb5 6. Ba3 Rh4+ 7. Ke3 Rh1
                                    8. Kf4 (s=2)
               14     0.32  -2.67   1. ... a4 2. Ba3 Rh7 3. Rd2 Rh1 4.
                                    f4 Rg1+ 5. Kf2 Rb1 6. Kg3 Rf1 7. Rh2
                                    Rd1 8. Bb2 Rd3+ 9. Kg4
               14->   0.36  -2.67   1. ... a4 2. Ba3 Rh7 3. Rd2 Rh1 4.
                                    f4 Rg1+ 5. Kf2 Rb1 6. Kg3 Rf1 7. Rh2
                                    Rd1 8. Bb2 Rd3+ 9. Kg4
               15     0.43  -2.64   1. ... a4 2. Ba3 Rh7 3. Rd2 Rh1 4.
                                    f4 Rg1+ 5. Kf2 Rb1 6. Kg3 Rf1 7. Rh2
                                    Rd1 8. Bb2 Rd3+ 9. Kg4 Ba6
               15->   0.54  -2.64   1. ... a4 2. Ba3 Rh7 3. Rd2 Rh1 4.
                                    f4 Rg1+ 5. Kf2 Rb1 6. Kg3 Rf1 7. Rh2
                                    Rd1 8. Bb2 Rd3+ 9. Kg4 Ba6 (s=2)
               16     0.66  -2.64   1. ... a4 2. Ba3 Rh7 3. Rd2 Rh1 4.
                                    Kf4 Bb7 5. f3 Ba6 6. Rg2 Bc8 7. Rd2
                                    Ba6 <HT>
               16->   0.78  -2.64   1. ... a4 2. Ba3 Rh7 3. Rd2 Rh1 4.
                                    Kf4 Bb7 5. f3 Ba6 6. Rg2 Bc8 7. Rd2
                                    Ba6 <HT>
               17     1.21  -2.71   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Kf4 Rh2 5. Kg3 Rh5 6. Kf4 Rh3 7. Bb2
                                    Rh4+ 8. Ke3 Bb5 9. Ba3 Rh3+ 10. f3
                                    Rh5
               17->   1.50  -2.71   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Kf4 Rh2 5. Kg3 Rh5 6. Kf4 Rh3 7. Bb2
                                    Rh4+ 8. Ke3 Bb5 9. Ba3 Rh3+ 10. f3
                                    Rh5
               18     2.16  -2.64   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Kf4 Rh2 5. Kg3 Rh5 6. Kf4 Bc8 7. Bb2
                                    Rh4+ 8. Kg3 Rh8 9. Ra1 Kb5 10. Kf4
                                    Ba6
               18->   2.94  -2.64   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Kf4 Rh2 5. Kg3 Rh5 6. Kf4 Bc8 7. Bb2
                                    Rh4+ 8. Kg3 Rh8 9. Ra1 Kb5 10. Kf4
                                    Ba6 (s=2)
               19     4.51  -2.63   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Re1 Bb7 5. f4 Bc8 6. Rb1 Rh8 7. Rf1
                                    Kb5 8. Rf2 Rh1 9. Rh2 Rd1 10. Kg4 Kc6
                                    11. Bb2 Rd3 12. Rh8 Bd7 13. Rh7 Rd2
                                    14. Ba1 <HT>
               19->   5.82  -2.63   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Re1 Bb7 5. f4 Bc8 6. Rb1 Rh8 7. Rf1
                                    Kb5 8. Rf2 Rh1 9. Rh2 Rd1 10. Kg4 Kc6
                                    11. Bb2 Rd3 12. Rh8 Bd7 13. Rh7 Rd2
                                    14. Ba1 <HT>
               20     7.80  -2.64   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Re1 Rh5 5. f4 Rh8 6. Kg2 Rb8 7. Bb2
                                    Rf8 8. Ra1 Kb5 9. Kf3 Rh8 10. Ra3 Bb7
                                    11. Ke3 Rh3+ 12. Kd2
               20->   9.04  -2.64   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Re1 Rh5 5. f4 Rh8 6. Kg2 Rb8 7. Bb2
                                    Rf8 8. Ra1 Kb5 9. Kf3 Rh8 10. Ra3 Bb7
                                    11. Ke3 Rh3+ 12. Kd2
               21    15.12  -2.65   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Re1 Rh5 5. f4 Rh8 6. Ra1 Bc8 7. Rb1
                                    Bd7 8. Kg2 Ra8 9. Kg3 Rb8 10. Kf3 Rb7
                                    11. Rb2 Rb8 <HT>
               21->  17.79  -2.65   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Re1 Rh5 5. f4 Rh8 6. Ra1 Bc8 7. Rb1
                                    Bd7 8. Kg2 Ra8 9. Kg3 Rb8 10. Kf3 Rb7
                                    11. Rb2 Rb8 12. Rh2 Bc8 13. Bb2 <HT>
               22    28.46  -2.61   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. f4 Bb7 6. Rg1 Kb5 7. Re1
                                    Bc6 8. Kg2 Rh4 9. Bc1 Rh7 10. Rh1 Rb7
                                    11. Ba3 Bd7 12. Bb2
               22->  44.08  -2.61   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. f4 Bb7 6. Rg1 Kb5 7. Re1
                                    Bc6 8. Kg2 Rh4 9. Bc1 Rh7 10. Rh1 Rb7
                                    11. Ba3 Bd7 12. Bb2 (s=3)
               23    55.99  -2.61   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. f4 Bb7 6. Rg1 Kb5 7. Bc1
                                    Bc6 8. Kg2 Rh7 9. Ba3 Rh4 <HT> (s=2)
               23->   1:03  -2.61   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. f4 Bb7 6. Rg1 Kb5 7. Bc1
                                    Bc6 8. Kg2 Rh7 9. Ba3 Rh4 <HT>
               24     1:41  -2.61   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. f4 Bb7 6. Rg1 Ba6 7. Rb1
                                    <HT>
               24->   2:00  -2.61   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. f4 Bb7 6. Rg1 Ba6 7. Rb1
                                    <HT>
               25     3:27  -2.44   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. Bc1 Rh8 6. Kg2 Rb8 7. Bb2
                                    Bc8 8. Kf3 Ra8 9. Ba3 Bd7 10. Rh1 Be8
                                    11. Ke3 Ra5 12. f4 Ra6 13. Rh8 Bf7
               25->   7:30  -2.44   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. Bc1 Rh8 6. Kg2 Rb8 7. Bb2
                                    Bc8 8. Kf3 Ra8 9. Ba3 Bd7 10. Rh1 Be8
                                    11. Ke3 Ra5 12. f4 Ra6 13. Rh8 Bf7
                                    (s=4)
               26    10:50  -2.45   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. Bc1 Bc8 6. Kg2 Rh7 7. Rh1
                                    Ra7 8. Ba3 Rb7 9. Bb2 Bd7 10. Kg3 Ra7
                                    11. Ba3 <HT> (s=3)
               26->  12:16  -2.45   1. ... a4 2. Ba3 Rh7 3. Rb1 Ba6 4.
                                    Rd1 Rh5 5. Bc1 Bc8 6. Kg2 Rh7 7. Rh1
                                    Ra7 8. Ba3 Rb7 9. Bb2 Bd7 10. Kg3 Ra7
                                    11. Ba3 <HT>
              time=16:39  mat=-1  n=12670698327  fh=92%  nps=12.7M
              extensions=470.0M qchecks=437.2M reduced=2175.2M pruned=3383.5M
              predicted=0  evals=387.9M  50move=0  EGTBprobes=1K  hits=1K
              SMP->  splits=68425  aborts=9981  data=23/65536  elap=16:39
terminating SMP processes.
Black(1):

c:\chess\winboard\crafty>crafty-20.0

Initializing multiple threads.
System is SMP, not NUMA.
EPD Kit revision date: 1996.04.21
found computer opening book file [./bookc.bin].
hash table memory =  192M bytes.
pawn hash table memory =    6M bytes.
EGTB cache memory =   32M bytes.
draw score set to    0.00 pawns.
choose from book moves randomly (using weights.)
choose from 5 best moves.
book learning enabled
result learning enabled
position learning enabled
resign after 5 consecutive moves with score < -9.
6 piece tablebase files found
80229kb of RAM used for TB indices and decompression tables
max threads set to 4

Crafty v20.0 (4 cpus)

White(1): hash 4096M
hash table memory = 3072M bytes.
White(1): st 999
search time set to 999.00.
White(1): epdpfga wac230.epd wac230.out
PFGA: EPD record: 1   ID: WAC.230
              time surplus   0.00  time limit 16:39 (16:39)
              depth   time  score   variation (1)
starting thread 1
starting thread 2
starting thread 3
               12     0.11     +1   1. ... Rh7
               12     0.14   0.00   1. ... Rh7 2. Rb1 Rh5 3. Kg4 Bb7 4.
                                    Ba3 Kb5 5. f3 Ka4 6. Bb2 Rh2 7. Ba1
               12     0.47  -1.70   1. ... Rb4 2. cxb4 a4 3. Rb1 c3 4.
                                    Rc1 b2 5. Rxc3+ Kd7 6. Rc7+ Kd8 7.
                                    Ra7 b1=Q 8. Rxa4
               12->   0.47  -1.70   1. ... Rb4 2. cxb4 a4 3. Rb1 c3 4.
                                    Rc1 b2 5. Rxc3+ Kd7 6. Rc7+ Kd8 7.
                                    Ra7 b1=Q 8. Rxa4 (s=2)
               13     0.65  -2.07   1. ... Rb4 2. cxb4 a4 3. Re2 Kb5 4.
                                    f4 c3 5. Re3 Kc4 6. f5 c2 7. Re1 b2
               13->   0.79  -2.07   1. ... Rb4 2. cxb4 a4 3. Re2 Kb5 4.
                                    f4 c3 5. Re3 Kc4 6. f5 c2 7. Re1 b2
               14     0.95     +1   1. ... Rb4
               14     1.39     -1   1. ... Rb4!!
               14     1.87  -2.47   1. ... Rb4 2. Rb1 Ra4 3. Rc1 Ra2 4.
                                    Kf3 a4 5. Ke3 Kb5 6. f3 Bb7 7. Rb1
                                    Rc2 8. Bb4
               14->   2.09  -2.47   1. ... Rb4 2. Rb1 Ra4 3. Rc1 Ra2 4.
                                    Kf3 a4 5. Ke3 Kb5 6. f3 Bb7 7. Rb1
                                    Rc2 8. Bb4
               15     2.49     +1   1. ... Rb4
               15     4.05  -2.32   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Rc2 bxc2 5. Ba3 c3 6. Kf4 Kc4 7. Ke3
                                    c1=Q+ 8. Bxc1 Kb3 9. Kf4 a3
               15->   4.54  -2.32   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Rc2 bxc2 5. Ba3 c3 6. Kf4 Kc4 7. Ke3
                                    c1=Q+ 8. Bxc1 Kb3 9. Kf4 a3
               16     5.36  -2.27   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Rc2 bxc2 5. Ba3 c3 6. Kf4 Kc4 7. Ke3
                                    c1=Q+ 8. Bxc1 Kb3 9. Kf4 a3 10. Be3
               16->   7.49  -2.27   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Rc2 bxc2 5. Ba3 c3 6. Kf4 Kc4 7. Ke3
                                    c1=Q+ 8. Bxc1 Kb3 9. Kf4 a3 10. Be3
                                    (s=3)
               17     9.36  -2.34   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Rc2 bxc2 5. Ba3 c3 6. Kf4 Kc4 7. Ke3
                                    c1=Q+ 8. Bxc1 Kb3 9. Kf4 a3 10. Be3
                                    Bd7 (s=2)
               17->  11.54  -2.34   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Rc2 bxc2 5. Ba3 c3 6. Kf4 Kc4 7. Ke3
                                    c1=Q+ 8. Bxc1 Kb3 9. Kf4 a3 10. Be3
                                    Bd7
               18    27.87  -2.46   1. ... Rb4 2. Kf3 Ra4 3. Rb1 Ra2 4.
                                    Rc1 Kb5 5. Ke3 Bd7 6. f3 Bc6 7. Bc5
                                    a4 8. Bd6 Rh2 9. Ba3 Rh5 10. Kf4 <HT>
               18->  32.82  -2.46   1. ... Rb4 2. Kf3 Ra4 3. Rb1 Ra2 4.
                                    Rc1 Kb5 5. Ke3 Bd7 6. f3 Bc6 7. Bc5
                                    a4 8. Bd6 Rh2 9. Ba3 Rh5 10. Kf4 Rh4+
                                    <HT>
               19    42.98     -1   1. ... Rb4!!
               19    56.49  -3.14   1. ... Rb4 2. Kf3 Ra4 3. Rb1 Ra2 4.
                                    Rc1 Kb5 5. Ke3 a4 6. f3 a3 7. Bc5 Ka4
                                    8. Bd6 Rg2 9. Ra1 a2 10. Kf4 Kb5 <HT>
               19->   1:04  -3.14   1. ... Rb4 2. Kf3 Ra4 3. Rb1 Ra2 4.
                                    Rc1 Kb5 5. Ke3 a4 6. f3 a3 7. Bc5 Ka4
                                    8. Bd6 Rg2 9. Ra1 a2 10. Kf4 Kb5 <HT>
               20     1:40     -1   1. ... Rb4!!
               20     4:31  -3.75   1. ... Rb4 2. f3 Ra4 3. Rb1 Kb5 4.
                                    Rh1 b2 5. Rb1 Ra2 6. Bc7 Ka4 7. Bxa5
                                    Kxa5 8. Kf4 Ra3 9. Rxb2 Rxc3 10. Rb8
                                    <HT>
               20->   4:57  -3.75   1. ... Rb4 2. f3 Ra4 3. Rb1 Kb5 4.
                                    Rh1 b2 5. Rb1 Ra2 6. Bc7 Ka4 7. Bxa5
                                    Kxa5 8. Kf4 Ra3 9. Rxb2 Rxc3 10. Rb8
                                    <HT>
               21     6:16  -4.09   1. ... Rb4 2. f3 Ra4 3. Rb1 Kb5 4.
                                    Rh1 Ra2 5. Bc7 Ba6 6. Bd8 Rc2 7. Be7
                                    Rxc3 8. Rh8 Rd3 9. Rb8+ Ka4 10. Rb6
                                    c3 11. Rxa6 b2 12. Rb6 Rxd4
               21->   7:12  -4.09   1. ... Rb4 2. f3 Ra4 3. Rb1 Kb5 4.
                                    Rh1 Ra2 5. Bc7 Ba6 6. Bd8 Rc2 7. Be7
                                    Rxc3 8. Rh8 Rd3 9. Rb8+ Ka4 10. Rb6
                                    c3 11. Rxa6 b2 12. Rb6 Rxd4
               22    11:33     -1   1. ... Rb4!!
               22    16:15  -4.50   1. ... Rb4 2. cxb4 a4 3. b5+ Kxb5 4.
                                    Re2 c3 5. Ba3 Kc4 6. f4 Kxd4 7. f5
                                    exf5 8. e6 Kc4 9. Re5 b2 <HT>
              time=16:39  mat=-1  n=10542526159  fh=88%  nps=10.55M
              ext-> chk=416229339 cap=8997515 1rep=17137538 mate=884416
              predicted=0  nodes=10542526159  evals=785357816  50move=0
              endgame tablebase-> probes=3  hits=0
              hashing-> 48%(raw) 47%(depth)  1431655303%(sat)  99%(pawn)
              hashing-> 0%(exact)  40%(lower)  2%(upper)
              SMP->  split=343670  stop=32596  data=34/32768  elap=16:39
Black(1):
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: The two crafties to have

Post by beachknight »

Any chance to get Crafty 23.1 x64 DC compile, together
with tricks, tweaks and fixes you made plus with draw and
wall detection codes you mention all the time, Dann.

Best,
hi, merhaba, hallo HT
swami
Posts: 6661
Joined: Thu Mar 09, 2006 4:21 am

Re: The two crafties to have

Post by swami »

beachknight wrote:Any chance to get Crafty 23.1 x64 DC compile, together
with tricks, tweaks and fixes you made plus with draw and
wall detection codes you mention all the time, Dann.

Best,
Agreed. Looking forward to compile for Crafty from Dann, as well as one from Jim. 8-)
User avatar
rhollay
Posts: 150
Joined: Wed Mar 08, 2006 8:26 pm

Re: The two crafties to have

Post by rhollay »

beachknight wrote:Any chance to get Crafty 23.1 x64 DC compile, together
with tricks, tweaks and fixes you made plus with draw and
wall detection codes you mention all the time, Dann.

Best,
Hmm... I thought that various builds of same version of Crafty (Dann, Jim, Peter Skinner...) differ only in little tricks in optimizations for different processors, thus in speed.
Are there also functional differences between them ?!