I hope this is an easily answered question, but I am slightly confused about how an evaluation function for a chess game works. I am using a minimax algorithm that evaluates the board at the leaf nodes, taking into account material, piece-square tables, mobility, etc. Does an evaluation function for a minimax algorithm (not negamax) take into account every piece on the board, both black and white, to calculate a board value or does it just look at the pieces of the minimser(black) or maximiser(white).
For instance, do I sum the material of both black and white or just whichever side's turn it is when the evaluate_board() method is called?
I apologise if this is confusing, but I am new to this. Even a little bit of clarification would be much appreciated. Thankyou.