Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: crafty problem

Author: Will Singleton

Date: 17:23:37 11/08/05

Go up one level in this thread


On November 08, 2005 at 19:07:45, Bryan Hofmann wrote:

>On November 08, 2005 at 11:11:04, Will Singleton wrote:
>
>>On November 08, 2005 at 02:48:44, Bernhard Bauer wrote:
>>
>>>On November 08, 2005 at 01:21:03, Will Singleton wrote:
>>>
>>>>On November 07, 2005 at 17:14:45, Rob Basham wrote:
>>>>
>>>>>[D]6r1/p1pq1p1p/1p1p1Qnk/3PrR2/2n1P1PP/P1P5/4R3/6K1 w - - 0 1
>>>>>
>>>>>Well, it is easy for Fidelity Mach 3.....:-)
>>>>>
>>>>>Mach 3 at level one finds all the correct moves to this mate in 11....!
>>>>>
>>>>>Beginning with....Rh5+
>>>>>
>>>>>How does your machine do on this one...?
>>>>>
>>>>>Rob
>>>>
>>>>Oddly, Crafty 20.0 bh cannot solve this.  Bug?  does it happen in the latest
>>>>crafty?
>>>
>>>
>>>
>>>Hi,
>>>on my system Crafty v20.0 BH finds mate in 11 easily
>>>same for v20.1
>>>
>>>               8->   0.63   0.01   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>>>                                   Kh5 4. Rh2+ Kg4 5. Rg2+ Kh4 6. Qf2+
>>>                                   Kh5 7. Qe2+ Kh4 8. Qf2+
>>>               9     0.66     +1   1. Rh5+!!
>>>               9     0.66     +3   1. Rh5+!!
>>>               9     0.67     +M   1. Rh5+!!
>>>               9     0.74  Mat11   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>>>                                   Kh5 4. Rh2+ Nh4 5. Qh6+ Kg4 6. Qxh4+
>>>                                   Kf3 7. Rf2+ Ke3 8. Qg3+ Kxe4 9. Qf3+
>>>                                   Ke5 10. Re2+ Ne3 11. Rxe3#
>>>               9->   0.82  Mat11   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>>>                                   Kh5 4. Rh2+ Nh4 5. Qh6+ Kg4 6. Qxh4+
>>>                                   Kf3 7. Rf2+ Ke3 8. Qg3+ Kxe4 9. Qf3+
>>>                                   Ke5 10. Re2+ Ne3 11. Rxe3#
>>>
>>>
>>>
>>>Kind regards
>>>Bernhard
>>
>>So, of the four results for crafty posted here, two cannot find it, one takes a
>>long time, and yours finds < 1 sec.  I wonder what's going on?
>>
>>My setup is a p4 2.8ghz, now using crafty 20.1 bh, the rc file sets the hash to
>>96mb, and the phash to 6mb.  Winboard 4.26.
>>
>>Will
>
>
>Removing the GUI from the picture an running crafty from the command line
>entering
>
>ponder off
>setb 6r1/p1pq1p1p/1p1p1Qnk/3PrR2/2n1P1PP/P1P5/4R3/6K1 w - - 0 1
>analyze
>
>Both 20.0 & 20.1 BH compiles find the solution, 20.0 finds it quicker. I have no
>idea what GUI is being used or what settings are in the crafty.rc file but a
>simple hash=96M hashp=48M gives the correct results.
>
>
>hash table memory =   96M bytes.
>pawn hash table memory =   48M bytes.
>
>
>Crafty v20.0 BH
>
>White(1): ponder off
>pondering disabled.
>White(1): setb 6r1/p1pq1p1p/1p1p1Qnk/3PrR2/2n1P1PP/P1P5/4R3/6K1 w - - 0 1
>
>       +---+---+---+---+---+---+---+---+
>    8  |   | . |   | . |   | . |<R>| . |
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|   |<P>|<Q>| . |<P>| . |<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |   |<P>|   |<P>|   |-Q-|<N>|<K>|
>       +---+---+---+---+---+---+---+---+
>    5  | . |   | . |-P-|<R>|-R-| . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |<N>| . |-P-| . |-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    3  |-P-|   |-P-|   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |   | . |   | . |-R-| . |   | . |
>       +---+---+---+---+---+---+---+---+
>    1  | . |   | . |   | . |   |-K-|   |
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>White(1): analyze
>              clearing hash tables
>              time surplus   0.00  time limit 22.50 (3:30)
>              depth   time  score   variation (1)
>                8->   0.75  -5.00   1. h5 Rxf5 2. exf5 Qd8 3. Qxd8 Rxd8
>                                    4. fxg6 hxg6 5. Re7 Nxa3 6. Rxc7
>                9     1.39     +1   1. h5!!
>                9     2.06     +3   1. h5!!
>                9     3.05     +M   1. h5!!
>                9     6.00   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>                9->   6.26   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               10     7.91   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               10->   9.86   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               11    13.06   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               11->  14.41   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               12    18.91   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               12    19.08     +1   1. Rh5+!!
>               12    19.12     +3   1. Rh5+!!
>               12    19.45     +M   1. Rh5+!!
>               12    43.30  Mat11   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>                                    Kh5 4. Rh2+ Nh4 5. Qh6+ Kg4 6. Qxh4+
>                                    Kf3 7. Rf2+ Ke3 8. Qg3+ Kxe4 9. Qf3+
>                                    Ke5 10. Re2+ Ne3 11. Rxe3#
>               12->  43.84  Mat11   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>                                    Kh5 4. Rh2+ Nh4 5. Qh6+ Kg4 6. Qxh4+
>                                    Kf3 7. Rf2+ Ke3 8. Qg3+ Kxe4 9. Qf3+
>                                    Ke5 10. Re2+ Ne3 11. Rxe3#
>
>
>hash table memory =   96M bytes.
>pawn hash table memory =   48M bytes.
>
>Crafty v20.1 BH
>
>White(1): ponder off
>pondering disabled.
>White(1): setb 6r1/p1pq1p1p/1p1p1Qnk/3PrR2/2n1P1PP/P1P5/4R3/6K1 w - - 0 1
>
>       +---+---+---+---+---+---+---+---+
>    8  |   | . |   | . |   | . |<R>| . |
>       +---+---+---+---+---+---+---+---+
>    7  |<P>|   |<P>|<Q>| . |<P>| . |<P>|
>       +---+---+---+---+---+---+---+---+
>    6  |   |<P>|   |<P>|   |-Q-|<N>|<K>|
>       +---+---+---+---+---+---+---+---+
>    5  | . |   | . |-P-|<R>|-R-| . |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   | . |<N>| . |-P-| . |-P-|-P-|
>       +---+---+---+---+---+---+---+---+
>    3  |-P-|   |-P-|   | . |   | . |   |
>       +---+---+---+---+---+---+---+---+
>    2  |   | . |   | . |-R-| . |   | . |
>       +---+---+---+---+---+---+---+---+
>    1  | . |   | . |   | . |   |-K-|   |
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>White(1): analyze
>              clearing hash tables
>              time surplus   0.00  time limit 22.50 (+0.00) (3:30)
>              depth   time  score   variation (1)
>                8->   1.00  -5.11   1. h5 Rxf5 2. exf5 Qd8 3. Qxd8 Rxd8
>                                    4. hxg6 fxg6 5. fxg6 Kxg6
>                9     1.87     +1   1. h5!!
>                9     2.83     +3   1. h5!!
>                9     4.00     +M   1. h5!!
>                9     8.06   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>                9->   8.86   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               10    10.86   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               10->  12.31   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               11    16.12   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               11->  18.14   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               12    23.26   0.01   1. h5 Rxf5 2. exf5 Qd8 3. g5+ Kxh5
>                                    4. Rh2+ Kg4 5. Rg2+ Kf3 6. Rf2+ Kg3
>                                    7. Rg2+ Kf3
>               12    23.45     +1   1. Rh5+!!
>               12    23.50     +3   1. Rh5+!!
>               12    23.83     +M   1. Rh5+!!
>               12    58.98  Mat11   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>                                    Kh5 4. Rh2+ Nh4 5. Qh6+ Kg4 6. Qxh4+
>                                    Kf3 7. Rf2+ Ke3 8. Qg3+ Kxe4 9. Qf3+
>                                    Ke5 10. Re2+ Ne3 11. Rxe3#
>               12->  59.75  Mat11   1. Rh5+ Rxh5 2. g5+ Rxg5+ 3. hxg5+
>                                    Kh5 4. Rh2+ Nh4 5. Qh6+ Kg4 6. Qxh4+
>                                    Kf3 7. Rf2+ Ke3 8. Qg3+ Kxe4 9. Qf3+
>                                    Ke5 10. Re2+ Ne3 11. Rxe3


I tried 20.1, and get similar results to yours.  But, 58 seconds to solve this
is an awful result (many others solve it instantly).  As I mentioned in another
post, if you change just one extension parameter (check) from the default of 1
to 0.60, crafty then solves it instantly.  As to why this is so is a mystery to
me, since extending checks shouldn't obscure a solution, only slow things down.
Something else must be happening, perhaps to do with futility pruning cuting off
extended check lines which otherwise would be evaluated.  Just speculating,
perhaps Bob might want to check it.

Will

btw, you don't need that massive pawn hash, 6mb is more than enough.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.