It occurred to me while reading this that making values relative to pawns is probably terrible, because pawns values are the most situational -- passed pawns, isolated pawns, backwards pawns, doubled pawns, tripled pawns, edge pawns, central pawns, pawns in front of the king, your LAST pawn, etc. In some cases, a pawn could approach the value of a queen, and in others, the value of the pawn might be negative.
I know we're talking about "average" pawns, and I guess we use it because it's typically worth the least, but it just seems odd to me to use it as a baseline. All pieces change value based on situation, but surely the pawn is the most unstable. I'm assuming the 1/4/4/6/12 scheme has average pawn value of >1.0 due to bonuses for centrality, king safety, and whatnot.
Relative Piece Values
Moderator: Ras
-
diep
- Posts: 1822
- Joined: Thu Mar 09, 2006 11:54 pm
- Location: The Netherlands
Re: Relative Piece Values
That would give values:Bill Rogers wrote:Years ago I discovered a little known fact about the value of pieces. What I did was to count the number of square that each piece could attack. I then added one point to each piece that could attack both colors with the exception of the King which I subtracted one point. When all the pieces were totaled I diveded the totals by three. It comes out to an amazingly close answer to what the pieces have been rated over the years.
Have a few spare minutes, give it a try.
Bill
pawn: 2 + 1 ==> 3 / 3 = 1.0
knight: 8+1 ==> 9 / 3 = 3.0
bishop: 13 ==> 13 / 3 = 4.33
rook: 15 ==> 15 / 3 = 5.0
queen: 27+1 ==> 28/3 = 9.33
Total ballony again.
Above piece values lose every single game in todays computerchess.
Vincent
-
diep
- Posts: 1822
- Joined: Thu Mar 09, 2006 11:54 pm
- Location: The Netherlands
Re: Relative Piece Values
Oh comeon, it's so obvious you're not knowing what you use in your own software that even the biggest fool realizes, based upon the PLAY of your software in combination what you spam here, that you aren't using the above values.Edsel Apostol wrote:I'm using 100, 325, 325, 500, 975. Strelka uses 100,300,300,500,1000 but there's a material correction table.mjlef wrote:Most strong program seem to sue relative piece values of P:N:B:R:Q of roughly 1:4:4:6:12
I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
Your proggie would lose every game when using the above values that you CLAIM you use.
Please recheck the code you cut'n pasted.
Your proggie of course doesn't have pawn at 100, but at 70 (toga) or 80 (fruit).
If you divide Fruit with that:
3.25 / 0.8 = 4.06 for a piece
Toga is a bit over agressive there (though that doesn't change its style much from Fruit) :
3.25 / 0.7 = 4.64 for a piece
With piece >= 4.0 THAT is how "twistedlogic" plays online, and not with 3.25 / 100 = 3.25.
Thanks,
Vincent
-
diep
- Posts: 1822
- Joined: Thu Mar 09, 2006 11:54 pm
- Location: The Netherlands
Re: Relative Piece Values
You sure you aren't hiding some sort of "1 pawn bonus for inequal material" that the rook gets added in your eval somewhere?mjlef wrote:Most strong program seem to use relative piece values of P:N:B:R:Q of roughly 1:4:4:6:12
I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
I'm actually just fixing a game where diep against rybka was too happy taking a bishop+knight in endgame against rybka rook+knight, diep having 2 connected passers on one wing.
Default difference light piece vs rook is 2+ pawn in diep. Some other logics in eval talks that diff down quickly, but not to just 1 pawn.
I'd argue a rook is at least 2 pawns better than a light piece in most cases.
-
frankp
- Posts: 233
- Joined: Sun Mar 12, 2006 3:11 pm
Re: Relative Piece Values
Perhaps there is a subtle point I am missing. You can either build the 'solution' to 3p for piece etc into the piece values, or fix with special terms in the eval?
-
hgm
- Posts: 28402
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Relative Piece Values
This is why I always normalize everything to Q=950.That makes it much easier to compare different value sets.MattieShoes wrote:It occurred to me while reading this that making values relative to pawns is probably terrible, because pawns values are the most situational -- passed pawns, isolated pawns, backwards pawns, doubled pawns, tripled pawns, edge pawns, central pawns, pawns in front of the king, your LAST pawn, etc. In some cases, a pawn could approach the value of a queen, and in others, the value of the pawn might be negative.
I know we're talking about "average" pawns, and I guess we use it because it's typically worth the least, but it just seems odd to me to use it as a baseline. All pieces change value based on situation, but surely the pawn is the most unstable. I'm assuming the 1/4/4/6/12 scheme has average pawn value of >1.0 due to bonuses for centrality, king safety, and whatnot.
-
bob
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Relative Piece Values
Yes. The difference is that hard-coded piece values are there for the game, anything you do in the eval can be adjusted as you wish... For example, a knight for 3 passed pawns on the 6th rank is not a -1.0 trade...frankp wrote:Perhaps there is a subtle point I am missing. You can either build the 'solution' to 3p for piece etc into the piece values, or fix with special terms in the eval?
-
frankp
- Posts: 233
- Joined: Sun Mar 12, 2006 3:11 pm
Re: Relative Piece Values
OK. But I was not suggesting that it was one or the other approach, merely that the hard-wired values address some basic trade issues. (Probably a rook for 3 connected passers on the 6th is not a good trade either.).bob wrote:Yes. The difference is that hard-coded piece values are there for the game, anything you do in the eval can be adjusted as you wish... For example, a knight for 3 passed pawns on the 6th rank is not a -1.0 trade...frankp wrote:Perhaps there is a subtle point I am missing. You can either build the 'solution' to 3p for piece etc into the piece values, or fix with special terms in the eval?
-
Bill Rogers
- Posts: 3562
- Joined: Thu Mar 09, 2006 3:54 am
- Location: San Jose, California
Re: Relative Piece Values
Vincent
Tell me then what other formula come closest to the values that have been used for the last couple of hundred years? The fact that computer chess allows all kinds of modifications in not only piece values but in piece square tables is a completely different point, not only but I thought the Rybka used some kind of calculation that came pretty close to those numbers too.
If you think or know of a better numerical weight for piece values then why don't you post them here so we can discuss how you came to believe that they are better. I am always open to better knowledge or proofs.
Oh, by the way you forgot to put in the kings weights using that formula and it come out to about 2.33 which is another number used for the last couple of centuries for a kings playing strenght.
Bill
Tell me then what other formula come closest to the values that have been used for the last couple of hundred years? The fact that computer chess allows all kinds of modifications in not only piece values but in piece square tables is a completely different point, not only but I thought the Rybka used some kind of calculation that came pretty close to those numbers too.
If you think or know of a better numerical weight for piece values then why don't you post them here so we can discuss how you came to believe that they are better. I am always open to better knowledge or proofs.
Oh, by the way you forgot to put in the kings weights using that formula and it come out to about 2.33 which is another number used for the last couple of centuries for a kings playing strenght.
Bill
-
hgm
- Posts: 28402
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Relative Piece Values
The point is that your formula contains nearly as many arbitrary adjustable parameters as there are pieces. Why do you add 1 for a piece that does attack both colors? Why not 2? And why do you exempt the King, and, e.g. not the Knight? And even subtract in stead of add for the King.
With so many arbitrary parameters, you could exactly reproduce a set of piece values no matter what they were.
Ab-initio piece-value calculation is noy a solved problem. Why is the difference between a Rook and a Bishop nearly two Pawns, and the difference between a Chancellor (which moves as R+N) and an Archbishop (B+N) nearly zero? Why is a piece that moves and captures as a King nearly equal in value to a Knight, which is again equal in value to a piece that moves like a King but captures as a Knight, but is a piece that moves like a Knight and captures like a King worth half a Pawn more? We just don't know.
With so many arbitrary parameters, you could exactly reproduce a set of piece values no matter what they were.
Ab-initio piece-value calculation is noy a solved problem. Why is the difference between a Rook and a Bishop nearly two Pawns, and the difference between a Chancellor (which moves as R+N) and an Archbishop (B+N) nearly zero? Why is a piece that moves and captures as a King nearly equal in value to a Knight, which is again equal in value to a piece that moves like a King but captures as a Knight, but is a piece that moves like a Knight and captures like a King worth half a Pawn more? We just don't know.