Uh... That's exactly what it means.voyagerOne wrote:@Matthew
You are doing something wrong then...
What is confusing is that you don't subtract the two!!
MVV - LVA The hypen(-) doesn't mean subtraction!
Actually no, it shouldn't. QxQ is at best an equal trade, so it gets a score of 0. PxR is a winning trade, so it gets searched first. Why would you search equal captures before winning captures?Let say you have two captures;
A. Queen is captured by Queen
B. Rook is captured by Pawn
Based on MVV - LVA:
"A" should be your first selection.
This doesn't work, because dorpsgek has king = 0. Also, just because something works for stockfish doesn't mean it works for everybody. Junior doesn't do null move, for example.An easy way to score this is what we do in SF.
Use the PieceValue for MVV
And index for LVA.
Where index = (P= 1, N = 2, B=3, R=4, Q=5 K=6)
Since your index is much smaller than PieceValue you then can do subtraction.
So if you have F as 10, you get what I tested:Example above:
A: qxq = 900(Queen Value) - 5 = 895
B: pxr = 500 (Rook Value) - 1 = 499
You can sort by just pieceValues by:
MVV * F - LVA
Where F is a factor greater than your Queen Value (Largest Value).
Just be careful not to do an integer overflow.
I hope this helps you out.
Code: Select all
Score of New vs Old: 404 - 626 - 124 [0.404] 1154 ELO difference: -68 SPRT: llr -2.96, lbound -2.94, ubound 2.94 - H0 was accepted Finished match Press any key to continue . . .