mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
Update k.cpp
This commit is contained in:
@@ -4,9 +4,11 @@
|
|||||||
//Definition of input feature quantity K of NNUE evaluation function
|
//Definition of input feature quantity K of NNUE evaluation function
|
||||||
namespace Eval::NNUE::Features {
|
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) {
|
inline Square orient(Color perspective, Square s) {
|
||||||
return Square(int(s) ^ (bool(perspective) * SQ_A8));
|
return Square(int(s) ^ (bool(perspective) * 63));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Index of a feature for a given king position.
|
// Index of a feature for a given king position.
|
||||||
|
|||||||
Reference in New Issue
Block a user