Do what the JS implementation did for a heuristic one-move lookahead for material balance. We should try it. It's one of the easiest "look ahead" heuristics.
If a piece can be capturable by opponent (as the board is now (called "null move")), then subtract 20-30% off Material Value for that piece. For example, if piece would have value = 10, and it can be captured by opponent on one side, it's value = 10 - 2. If it can be captured on 2 sides, then it's value = 10 - 2 - 2.
Do what the JS implementation did for a heuristic one-move lookahead for material balance. We should try it. It's one of the easiest "look ahead" heuristics.
If a piece can be capturable by opponent (as the board is now (called "null move")), then subtract 20-30% off Material Value for that piece. For example, if piece would have value = 10, and it can be captured by opponent on one side, it's value = 10 - 2. If it can be captured on 2 sides, then it's value = 10 - 2 - 2.