Does anyones computer find RxH2

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

Moderators: hgm, Rebel, chrisw

User avatar
mhurd
Posts: 46
Joined: Wed Dec 30, 2009 9:27 pm

Re: Does anyones computer find RxH2

Post by mhurd »

I think it was meant as a best variation after Rxh2. Rxh2 is in Rainbow Serpent's movelist continuously near the top but never considered very long. Apparently not enough compensation to compete with Qc5, but that does not get a winning score so in the end it is still a positional decision, unless the score for Rxh2 is losing, have not really tried the move but I don't think it is losing?
That is correct, I used stockfish to see what might have been played after Rxh2 perhaps I should have made this clear. :roll:

Mike
User avatar
Eelco de Groot
Posts: 4567
Joined: Sun Mar 12, 2006 2:40 am
Full name:   

Re: Does anyones computer find RxH2

Post by Eelco de Groot »

mhurd wrote:
I think it was meant as a best variation after Rxh2. Rxh2 is in Rainbow Serpent's movelist continuously near the top but never considered very long. Apparently not enough compensation to compete with Qc5, but that does not get a winning score so in the end it is still a positional decision, unless the score for Rxh2 is losing, have not really tried the move but I don't think it is losing?
That is correct, I used stockfish to see what might have been played after Rxh2 perhaps I should have made this clear. :roll:

Mike
Thanks Louis and Mike!

As a follow up just some more computer analysis I made, to see if the computer can look deep enough in the Rook endgame after the Qc5 choice, I think it may be won but a computerprogram would have to look very very deep indeed to show enough progress, and maybe there are some side variations that would actually save White, but anyway looking deeper the score is reasonably steady going up for Black. Shaving off some bits of the search in Rainbow Serpent in the process hoping this version can look a bit deeper even with limited resources. There were some stupid bugs in the nextBestMove code eliminated. Version 044:


Engine: Rainbow Serpent 1.8(s)dc Build 044 (Athlon 2009 MHz, 256 MB)
by Tord Romstad, Marco Costalba, Joona Kiiski

1.00 0:00 -0.44 1...gxf4 (5.410) 21

2.00 0:00 -0.44 1...gxf4 2.Bxf4 (5.479) 21

2.00 0:00 -0.41 1...Qc5 2.Rhf1 (8.855) 35

3.00 0:00 0.00 1...Qc5 2.Qf3 Kb7 (16.713) 63

4.00 0:00 0.00 1...Qc5 2.Qf3 Nf2 3.Bg1 (32.208) 114

5.00 0:00 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1 Rg8 9.Rf1 Rg4
10.Kd1 Kb7 11.Ke1 Kb6 (14.570.963.075) 657

35.01 438:38 +2.34 1...Qc5 2.Qxc5 Bxc5 3.Bxe4 Be3+
4.Kb1 Rxd1+ 5.Rxd1 fxe4 6.Bg1 Bxg1
7.Rxg1 gxf4 8.Kc1 Rg8 9.Rf1 Rg4
10.Kd1 Kb7 11.Ke1 Kb6 12.Kf2 Kc5
13.Rd1 Rg5
{[D]8/p1p5/2p1p3/2k1P1r1/4pp2/P7/1PP2KP1/3R4 w - - 0 1
This may be won for Black but only slow progress is
visible. F.e. 14. c3 Rxe5 15. Rd4 Kb5 16. Rb4+ Ka6
17. Ra4+ Kb7 18. Rb4+ Kc8 19. Ra4 c5 is possible
[D]2k5/p1p5/4p3/2p1r3/R3pp2/P1P5/1P3KP1/8 w - - 0 1
This is evaluated -2.94 for White but starting a new
search here Rainbow Serpent gives 20. Rc4 Kb7 21. b4 Kc6
and this is evaluated -3.63 at 32 plies} (17.352.194.857) 659

best move: Qe7-c5 time: 547:17.203 min n/s: 658.963 nodes: 21.638.512.215

Version 041 was:

Code: Select all

      // Step extra. pv search (only in PV nodes)
      // The first move in list is the expected PV
      if (PvNode && (moveCount == 1 || (move == nextbestMove && !singularExtended)))
	  {
		  if &#40;newDepth < 10*OnePly&#41;
			  value = - search<NonPV>&#40;pos, ss+1, -Max&#40;alpha+1, excValue+1&#41;, -Max&#40;alpha, excValue&#41;, newDepth + 4*OnePly, ply+1&#41;;

          if &#40;moveCount == 1&#41;
			  value = newDepth < OnePly ? -qsearch<PV>&#40;pos, ss+1, -beta, -alpha, Depth&#40;0&#41;, ply+1&#41;
                                    &#58; - search<PV>&#40;pos, ss+1, -beta, -alpha, newDepth, ply+1&#41;;
	  &#125;
      else
      &#123;
          // Step 14. Reduced depth search
          // If the move fails high will be re-searched at full depth.
Changed it to

Code: Select all

      // Step extra. pv search &#40;only in PV nodes&#41;
      // The first move in list is the expected PV
      if &#40;PvNode && &#40;moveCount == 1 || move == nextbestMove&#41;)
	  &#123;
		  if &#40;newDepth < 10*OnePly || move == nextbestMove&#41;
			  value = - search<NonPV>&#40;pos, ss+1, -Max&#40;alpha+1, excValue+1&#41;, -Max&#40;alpha, excValue&#41;, newDepth + 4*OnePly, ply+1&#41;;

          if &#40;moveCount == 1 || value > alpha&#41; 
			  value = newDepth < OnePly ? -qsearch<PV>&#40;pos, ss+1, -beta, -alpha, Depth&#40;0&#41;, ply+1&#41;
                                    &#58; - search<PV>&#40;pos, ss+1, -beta, -alpha, newDepth, ply+1&#41;;
	  &#125;
      else
      &#123;
          // Step 14. Reduced depth search
          // If the move fails high will be re-searched at full depth.
because in the old version, only if newDepth was smaller than 10 plies there actually was a search done for nextbestMove and if the nextbestMovemove failed high, result of the deep nullwindow search > alpha, there would be no re-search! So this should be a bit more accurate
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
rightrook
Posts: 1452
Joined: Wed Mar 08, 2006 8:45 pm

Re: Does anyones computer find RxH2

Post by rightrook »

Crafty 19.19 finds Rxh2 in only 25 seconds!

(on my slow Compaq)...

:lol:

All the other engines I tried have trouble with this one!

Thanks for the good test move!
Robert
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Does anyones computer find RxH2

Post by zullil »

rightrook wrote:Crafty 19.19 finds Rxh2 in only 25 seconds!

(on my slow Compaq)...

:lol:

All the other engines I tried have trouble with this one!

Thanks for the good test move!
Robert
I think the point is that Rxh2 is not the right move. :cry: In any case, see what Crafty-23.3 liked: http://talkchess.com/forum/viewtopic.ph ... 52&t=35915
kgburcham
Posts: 2016
Joined: Sun Feb 17, 2008 4:19 pm

Re: Does anyones computer find RxH2

Post by kgburcham »

and another version of Crafty 23.01 shows Rxh2 second best move.

[D] 1k1r1b1r/p1p1q3/2p1p3/4Ppp1/4nP2/P2BQ3/1PP3PB/2KR3R b - - 0 1

Craf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