Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty EGTB Bug

Author: Robert Hyatt

Date: 14:06:02 01/02/04

Go up one level in this thread


On January 02, 2004 at 14:19:27, Slater Wold wrote:

>On January 02, 2004 at 14:10:59, Luis Smith wrote:
>
>>Someone posted this position in the Winboard forum
>>
>>[D]3r4/1K6/5N2/8/8/4k3/8/8 w - - 7 98
>>
>>This is what Crafty displays under analysis mode.
>>
>>depth=0 -327.39 1. Nh7 <EGTB>
>>Nodes: 0 NPS: 0
>>Time: 00:00:00.01
>>
>>If you disable EGTB's it displays one of the drawing moves.  However if you
>>force it to play as black it plays Ng4+ one of the drawing moves.
>
>It's not a bug.  Crafty simply cannot play this ending without TBs.

I am not sure what that means.  It can play this position just fine without
endgame tables, it is simply a draw...


>
>
>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 =   12M bytes.
>EGTB cache memory =   16M bytes.
>6 piece tablebase files found
>36513kb of RAM used for TB indices and decompression tables
>max threads set to 2
>playing a computer!
>resign after 5 consecutive moves with score < -9.
>noise level set to 20000.
>pondering disabled.
>
>Crafty v19.8 (2 cpus)
>
>White(1): setboard 3r4/1K6/5N2/8/8/4k3/8/8 w - - 7 98
>1. Nh5 Rd1 2. Nf6 Ra1 3. Ng8 Rb1+ 4. Kc8 Ra1 5. Ne7 Rb1 6. Ng8 Ra1
>White(1): go
>end-game phase
>              clearing hash tables
>              time surplus   0.00  time limit 22.50 (3:30)
>              depth   time  score   variation (1)
>starting thread 1
>                2     0.00 -Mat14   1. Nh7 <EGTB>
>              time=0.00  cpu=100%  mat=-2  n=92  fh=100%  nps=10K
>              ext-> chk=9 cap=0 pp=0 1rep=0 mate=0
>              predicted=0  nodes=92  evals=1
>              endgame tablebase-> probes=13  hits=13
>              SMP->  split=4  stop=0  data=1/4096  cpu=0.00  elap=0.00
>
>White(1): Ng4+
>              time used:   0.02

Aha...  you are not aware of how crafty displays things.  Years ago, I put
in code so that no matter what the "noise setting" if crafty sees a mate
score it will display the output.  As you can see, Nh7 instantly loses.  It
is simply displaying that fact.  It doesn't show anything else until it
actually plays the Ng4+ move...

This is all perfectly normal.



>
>


>
>
>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 =   12M bytes.
>max threads set to 2
>playing a computer!
>resign after 5 consecutive moves with score < -9.
>noise level set to 20000.
>pondering disabled.
>
>Crafty v19.8 (2 cpus)
>
>White(1): setboard 3r4/1K6/5N2/8/8/4k3/8/8 w - - 7 98
>White(1): st 60
>search time set to 60.00.
>White(1): go
>end-game phase
>              clearing hash tables
>              time surplus   0.00  time limit 1:00 (1:00)
>              depth   time  score   variation (1)
>starting thread 1
>                8     0.01  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1
>                8->   0.01  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1
>                9     0.03  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7
>                9->   0.03  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7
>               10     0.09  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1
>               10->   0.09  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1
>               11     0.20  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8
>               11->   0.20  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8
>               12     0.46  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1
>               12->   0.48  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1
>               13     1.01  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7
>               13->   1.04  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7
>               14     2.17  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2
>               14->   2.21  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2
>               15     4.95  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8
>               15->   5.03  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8
>               16     8.50  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1
>               16->   8.62  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1
>               17    14.48  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1 10. Kg8
>               17->  14.71  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1 10. Kg8
>               18    23.57  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1 10. Kg8
>                                    Ka1
>               18->  23.98  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1 10. Kg8
>                                    Ka1
>               19    42.51  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1 10. Kg8
>                                    Ka1 11. Kh8
>               19->  43.04  -0.58   1. Ng4+ Kd2 2. Nh6 Rd7+ 3. Kc8 Rd3
>                                    4. Nf7 Ra3 5. Kd8 Kc1 6. Ke7 Kb1 7.
>                                    Kf8 Ka1 8. Kg7 Ka2 9. Kh8 Kb1 10. Kg8
>                                    Ka1 11. Kh8
>              time=1:00  cpu=195%  mat=-2  n=138587065  fh=88%  nps=2.31M
>              ext-> chk=9398289 cap=0 pp=0 1rep=41120 mate=53194
>              predicted=0  nodes=138587065  evals=1
>              endgame tablebase-> probes=0  hits=0
>              SMP->  split=2388  stop=118  data=9/4096  cpu=1:57  elap=1:00
>
>White(1): Ng4+



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.