Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Repetition detection test position

Author: Robert Hyatt

Date: 07:07:25 11/28/03

Go up one level in this thread


On November 28, 2003 at 03:20:23, Russell Reagan wrote:

>On November 28, 2003 at 01:42:13, Robert Hyatt wrote:
>
>>First question, does ruffian find the draw quickly if you set up the
>>position with FEN as opposed to entering the complete game history?
>>
>>If so I have no idea what is happening...
>
>Ruffian got it at 6 seconds the second time I tried it. I know that Ruffian
>returns a draw score if the position has only occured twice (instead of the
>normal three occurances required for a draw). Bruce describes drawbacks to this
>approach: http://www.brucemo.com/compchess/programming/repetition.htm
>
>Does Crafty require the position to have occured three times before it results
>in a draw? If so, that could account for the extra time needed.

Crafty requires a two-fold repetition for draws, except that in the first
two plies of search, only 3-fold is accepted.  In this case, that second
rule is not used since there is no game history and a repetition can't occur
in the first 2 plies as a result.

>
>
>>I tried it here and crafty only takes a few seconds to see the
>>draw...  do you have a position.bin file?  Delete it and try again.
>
>Here is what I get with Crafty 19.3, after deleting the position.bin file. Both
>times are just setup from the FEN string with the engines restarted before
>analysis begins. It only took 3:17 for Crafty this time (instead of 4:02 last
>time) to get a 0.00 score. At 1:57 I think we can call it a draw though (-0.02).
>
>c193smp-k7sse  WB2 99 MB:
> 6   00:00 -3.69   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qd3+ Kb4 4. Qd6+ Kc4 5. Qc6+ Kd3
>                   6. Qd5+ Kc3
> 7   00:01 -3.46   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Kc4 5. Qc6+ Kd3
>                   6. Qd5+ Kc3 7. Qe5+ Kc2 8. Qe4+ <HT>
> 8   00:01 -3.51   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qd1+ Ka3 <HT>
> 9   00:01 -3.51   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qd1+ Ka3 <HT>
>10   00:02 -3.56   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qd1+ Ka3 7. Qf3+ Kb4 8. Qf4+ Ka5 9. Qc7+ Ka4 10. Qa7+ Kb3
>11   00:02 -3.16   1. Kh2+!!
>11   00:02 -3.17   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qd1+ Ka3 7. Qf3+ Kb4 8. Qf4+ Ka5 9. Qc7+ Ka4 10. Qa7+ Kb3
>12   00:04 -3.54   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>13   00:04 -3.14   1. Kh2+!!
>13   00:05 -3.15   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>14   00:06 -2.75   1. Kh2+!!
>14   00:08 -2.76   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>15   00:09 -2.36   1. Kh2+!!
>15   00:12 -2.37   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>16   00:15 -1.97   1. Kh2+!!
>16   00:19 -1.98   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>17   00:20 -1.58   1. Kh2+!!
>17   00:27 -1.59   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>18   00:27 -1.19   1. Kh2+!!
>18   00:42 -1.20   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>19   00:43 -0.80   1. Kh2+!!
>19   01:18 -0.81   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>20   01:19 -0.41   1. Kh2+!!
>20   01:56 -0.42   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>21   01:57 -0.02   1. Kh2+!!
>21   03:02 -0.03   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke2
>22   03:17  0.00   1. Kh2+ Kc2 2. Qe4+ Kb3 3. Qe6+ Kb4 4. Qd6+ Ka5 5. Qd8+ Ka4
>                   6. Qa8+ Kb4 7. Qf8+ Kc3 8. Qf3+ Kd2 9. Qd5+ Ke1 10. Qh1+ Ke2
>                   11. Qe4+ Kf1 12. Qg2+ Ke1 13. Qh1+
>
>Here is what I get with Ruffian.
>
>Ruffian_105  UCI 118 MB:
> 1   00:00 -9.53   f3 a1Q
> 1   00:00 -9.45   f4 a1Q
> 1   00:00 -9.11   Qg2 a1Q
> 1   00:00 -3.64   Qf3+ Kd2
> 1   00:00 -3.49   Qd5+ Ke2
> 1   00:00 -3.48   Kg2+ Ke2
> 2   00:00 -3.97   Kg2+ Ke2 Qh5+ Kd3
> 3   00:00 -3.87   Kg2+ Kd2 Qh6+ Kc2 Qg6+ Kc3
> 3   00:00 -3.63   Qd5+ Kc2 Qe4+ Kb3 Qd3+ Kb4
> 3   00:00 -3.43   Qf3+ Qe2 Qd5+ Kc1 Qd4
> 4   00:00 -3.43   Qf3+ Qe2 Qa3 Qg4+ Kf1 Qc4+ Kg2
> 5   00:00 -3.47   Qf3+ Kc1 Qe3+ Qd2 Qc5+ Kd1 Qh5+ Qe2 Qh8
> 6   00:00 -3.47   Qf3+ Kc1 Qe3+ Qd2 Qa3+ Kd1 Qb3+ Ke1 Qe6+ Qe2 Qa6
> 7   00:00 -3.81   Qf3+ Kc1 Qe3+ Qd2 Qa3+ Kd1 Kg2 b4 Qa4+ Ke2 Qb5+ Ke1
> 8   00:00 -4.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+ Kc2 Qh7+ Kc3 Qg7+ Kb3 Qf7+ Kb4 Qe7+ Kc4 Qf7+ Kc5 Qc7+
>                   Kd5 Qd7+ Ke4 Qg4+ Kd3 Qg6+ Ke2 Qh5+ Ke1 Qh1+ Kd2 Qh6+ Kc3
>                   Qg7+
>15   00:08  0.00   Kg2+ Kc2 Qh7+ Kc3 Qg7+ Kb3 Qf7+ Kb4 Qe7+ Kc4 Qf7+ Kc5 Qc7+
>                   Kd5 Qd7+ Ke4 Qg4+ Kd3 Qg6+ Ke2 Qh5+ Ke1 Qh1+ Kd2 Qh6+ Kc3
>                   Qg7+
>16   00:11  0.00   Kg2+ Kc2 Qh7+ Kc3 Qg7+ Kb3 Qf7+ Kb4 Qe7+ Kc4 Qf7+ Kc5 Qc7+
>                   Kd5 Qd7+ Ke4 Qg4+ Kd3 Qg6+ Ke2 Qh5+ Ke1 Qh1+ Kd2 Qh6+ Kc3
>                   Qg7+
>17   00:15  0.00   Kg2+ Kc2 Qh7+ Kc3 Qg7+ Kb3 Qf7+ Kb4 Qe7+ Kc4 Qf7+ Kc5 Qc7+
>                   Kd5 Qd7+ Ke4 Qg4+ Kd3 Qg6+ Ke2 Qh5+ Ke1 Qh1+ Kd2 Qh6+ Kc3
>                   Qg7+



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.