This commit is contained in:
noobpwnftw
2020-09-08 09:35:53 +08:00
parent e5f05fa2b9
commit d21424c8d3
15 changed files with 61 additions and 238 deletions

View File

@@ -23,9 +23,9 @@
namespace Eval::NNUE::Features {
// Orient a square according to perspective (rotates by 180 for black)
// Orient a square according to perspective (flip rank for black)
inline Square orient(Color perspective, Square s) {
return Square(int(s) ^ (bool(perspective) * 63));
return Square(int(s) ^ (bool(perspective) * SQ_A8));
}
// Find the index of the feature quantity from the king position and PieceSquare