Update half_relative_kp.cpp

This commit is contained in:
JWmer
2020-11-20 15:16:37 +01:00
committed by nodchip
parent 36c801699f
commit 021f47b00e

View File

@@ -4,9 +4,11 @@
//Definition of input features HalfRelativeKP of NNUE evaluation function
namespace Eval::NNUE::Features {
// Orient a square according to perspective (flip rank for black)
// Orient a square according to perspective (rotate the board 180° for black)
// this has to stay until we find a better arch that works with "flip".
// allows us to use current master net for gensfen (primarily needed for higher quality data)
inline Square orient(Color perspective, Square s) {
return Square(int(s) ^ (bool(perspective) * SQ_A8));
return Square(int(s) ^ (bool(perspective) * 63));
}
// Find the index of the feature quantity from the ball position and PieceSquare