I'm trying to improve my evaluation and I saw this here
materialScore = kingWt * (wK-bK) + queenWt * (wQ-bQ) + rookWt * (wR-bR) + knightWt* (wN-bN) + bishopWt* (wB-bB) + pawnWt * (wP-bP)
How do I get the value, let's say
wK? Do I get the position of the king and score it relative to the board? For example,
wK is more safe than the
bK, so let's say
wK - bK = 1 - 0.5. So, the result will be
90 * (0.5). Is this really how it works?