When asked for position key print it as an hex value
authorMarco Costalba <mcostalba@gmail.com>
Tue, 24 Mar 2009 09:50:13 +0000 (10:50 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 24 Mar 2009 09:50:13 +0000 (10:50 +0100)
Merged from Glaurung current development snapshot.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/uci.cpp

index 6ce3bf8..4845975 100644 (file)
@@ -170,7 +170,7 @@ namespace {
     }
     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;