Alternating Scores

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
Evert
Posts: 2923
Joined: Fri Jan 21, 2011 11:42 pm
Location: NL
Contact:

Re: Alternating Scores

Post by Evert » Wed Feb 09, 2011 6:08 pm

evandam wrote:Ok I looked at the eval a little closer. To simplify, I took out everything except the material evaluation. Turns out I have the piece values set at 1 3 3.1 7 10 (for P N B R Q). I also simplified this to 1 3 3 7 10. So again from.
Shouldn't matter.
5rk1/pp4p1/2n1p2p/2Npq3/2p5/6P1/P3P1BP/R4Q1K w - - 0 1

1 +7.00 Qxf8+
2 -3.00 Qxf8+ Kxf8
3 +1.00 Bf3 a5 Nxe6
4 -3.00 Nxb7 Rxf1+ Rxf1 Qxe2
5 +7.00 Qxf8+ Kxf8 Nd7+ Ke7 Nxe5

Initially both sides have 27. Qxf8+ and it is 27-20 (+7.00). Qxf8+ Kxf8 and it is 17-20 (-3.00) and so on.
What do you mean by "Qxf8+ is 27-20 (+7.00)"? Without quiescence, Qxf8 should just put you a rook ahead (+5.00). Where are those numbers coming from?
Related question: after 1... Kxf8 it's clear that 1. Qxf8 is a bad move, so why is that still selected as the best move after a two ply search?

evandam
Posts: 18
Joined: Mon Feb 07, 2011 8:12 pm

Re: Alternating Scores

Post by evandam » Wed Feb 09, 2011 7:42 pm

Ok I looked at the eval a little closer. To simplify, I took out everything except the material evaluation. Turns out I have the piece values set at 1 3 3.1 7 10 (for P N B R Q). I also simplified this to 1 3 3 7 10. So again from.

Shouldn't matter.
No it shouldn't I was just simplifying the problem for the time being.
5rk1/pp4p1/2n1p2p/2Npq3/2p5/6P1/P3P1BP/R4Q1K w - - 0 1

1 +7.00 Qxf8+
2 -3.00 Qxf8+ Kxf8
3 +1.00 Bf3 a5 Nxe6
4 -3.00 Nxb7 Rxf1+ Rxf1 Qxe2
5 +7.00 Qxf8+ Kxf8 Nd7+ Ke7 Nxe5

Initially both sides have 27. Qxf8+ and it is 27-20 (+7.00). Qxf8+ Kxf8 and it is 17-20 (-3.00) and so on.

What do you mean by "Qxf8+ is 27-20 (+7.00)"? Without quiescence, Qxf8 should just put you a rook ahead (+5.00). Where are those numbers coming from?
Yes without quiescence. The +7.00 is a product of my piece values which in my case are 1 3 3 7 10 for P K B R Q. So that is where those numbers are coming from.

Related question: after 1... Kxf8 it's clear that 1. Qxf8 is a bad move, so why is that still selected as the best move after a two ply search?
Wrong. Look a bit closer. Both the wQ and wR are threatened. So that is the best move after a two ply search.

User avatar
Evert
Posts: 2923
Joined: Fri Jan 21, 2011 11:42 pm
Location: NL
Contact:

Re: Alternating Scores

Post by Evert » Wed Feb 09, 2011 7:47 pm

evandam wrote: Yes without quiescence. The +7.00 is a product of my piece values which in my case are 1 3 3 7 10 for P K B R Q. So that is where those numbers are coming from.
Right, I completely glossed over the fact that you're using a value of 7 rather than 5 for the rook.
Any particular reason for that?
Related question: after 1... Kxf8 it's clear that 1. Qxf8 is a bad move, so why is that still selected as the best move after a two ply search?
Wrong. Look a bit closer. Both the wQ and wR are threatened. So that is the best move after a two ply search.[/quote]
Right, ok. So yes, you do need a quiescence search. ;)

evandam
Posts: 18
Joined: Mon Feb 07, 2011 8:12 pm

Re: Alternating Scores

Post by evandam » Wed Feb 09, 2011 8:03 pm

Evert wrote: Right, I completely glossed over the fact that you're using a value of 7 rather than 5 for the rook.
Any particular reason for that?
Not really. I have been sort of concentrating on the search algorithms for now, since the improvement there to me at least is more measurable than changes to the eval. I'll get around to it later.
Evert wrote: Right, ok. So yes, you do need a quiescence search. ;)
Don't feel bad. I had to run it though playing alternate moves against Crafty before I noticed it. Quiescence is next on my list.

bob
Posts: 20639
Joined: Mon Feb 27, 2006 6:30 pm
Location: Birmingham, AL

Re: Alternating Scores

Post by bob » Wed Feb 09, 2011 10:51 pm

evandam wrote:Ok I looked at the eval a little closer. To simplify, I took out everything except the material evaluation. Turns out I have the piece values set at 1 3 3.1 7 10 (for P N B R Q). I also simplified this to 1 3 3 7 10. So again from.

5rk1/pp4p1/2n1p2p/2Npq3/2p5/6P1/P3P1BP/R4Q1K w - - 0 1

1 +7.00 Qxf8+
2 -3.00 Qxf8+ Kxf8
3 +1.00 Bf3 a5 Nxe6
4 -3.00 Nxb7 Rxf1+ Rxf1 Qxe2
5 +7.00 Qxf8+ Kxf8 Nd7+ Ke7 Nxe5

Initially both sides have 27. Qxf8+ and it is 27-20 (+7.00). Qxf8+ Kxf8 and it is 17-20 (-3.00) and so on.

If we can agree on that, and overlook the fact that maybe my piece values are bad etc. Quiescence sounds like the way to quite these swings.
You have to do something, or every time you move you will make a move that leaves a piece hanging at the last ply, which will greatly distort the search results...

Post Reply