- mgValue -= mg_pst(us, KING, kfrom);
- mgValue += mg_pst(us, KING, kto);
- egValue -= eg_pst(us, KING, kfrom);
- egValue += eg_pst(us, KING, kto);
- mgValue -= mg_pst(us, ROOK, rfrom);
- mgValue += mg_pst(us, ROOK, rto);
- egValue -= eg_pst(us, ROOK, rfrom);
- egValue += eg_pst(us, ROOK, rto);
+ mgValue -= pst<MidGame>(us, KING, kfrom);
+ mgValue += pst<MidGame>(us, KING, kto);
+ egValue -= pst<EndGame>(us, KING, kfrom);
+ egValue += pst<EndGame>(us, KING, kto);
+ mgValue -= pst<MidGame>(us, ROOK, rfrom);
+ mgValue += pst<MidGame>(us, ROOK, rto);
+ egValue -= pst<EndGame>(us, ROOK, rfrom);
+ egValue += pst<EndGame>(us, ROOK, rto);