]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
NNUE namespace cleanup
[stockfish] / src / uci.cpp
index 3883b3d370769a9d6469a7fef9b3842f71871c64..8f9684ee26566ea9a00e5278803b32b8eca1d44b 100644 (file)
@@ -32,6 +32,7 @@
 #include "tt.h"
 #include "uci.h"
 #include "syzygy/tbprobe.h"
+#include "nnue/evaluate_nnue.h"
 
 using namespace std;
 
@@ -358,15 +359,15 @@ std::string UCI::square(Square s) {
 
 string UCI::move(Move m, bool chess960) {
 
-  Square from = from_sq(m);
-  Square to = to_sq(m);
-
   if (m == MOVE_NONE)
       return "(none)";
 
   if (m == MOVE_NULL)
       return "0000";
 
+  Square from = from_sq(m);
+  Square to = to_sq(m);
+
   if (type_of(m) == CASTLING && !chess960)
       to = make_square(to > from ? FILE_G : FILE_C, rank_of(from));