]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
When asked for position key print it as an hex value
[stockfish] / src / uci.cpp
index 6ce3bf8567447fa531861af74ff25fe989ccb284..48459757dda217aaf117fc5fbc60211722555488 100644 (file)
@@ -170,7 +170,7 @@ namespace {
     }
     else if (token == "key")
     {
     }
     else if (token == "key")
     {
-        std::cout << "key: " << RootPosition.get_key()
+        std::cout << "key: " << std::hex << RootPosition.get_key()
                   << " material key: " << RootPosition.get_material_key()
                   << " pawn key: " << RootPosition.get_pawn_key()
                   << std::endl;
                   << " material key: " << RootPosition.get_material_key()
                   << " pawn key: " << RootPosition.get_pawn_key()
                   << std::endl;