aboutsummaryrefslogtreecommitdiff
path: root/src/uci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uci.cpp')
-rw-r--r--src/uci.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uci.cpp b/src/uci.cpp
index d436cb1..4825ece 100644
--- a/src/uci.cpp
+++ b/src/uci.cpp
@@ -87,6 +87,9 @@ void Uci() {
if (cmd == "uci") {
cout << "uciok\n";
cout.flush();
+ } else if (cmd == "ucinewgame") {
+ game =
+ initBoard("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
} else if (cmd == "isready") {
cout << "readyok\n";
cout.flush();