aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/Game.cpp')
-rw-r--r--src/game_tab/Game.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp
index b9181a9..2b2955a 100644
--- a/src/game_tab/Game.cpp
+++ b/src/game_tab/Game.cpp
@@ -139,5 +139,8 @@ std::string Game::GetPGN() {
}
pgn += moves->GetPGN();
}
+ pgn += " " + result;
return (pgn);
-} \ No newline at end of file
+}
+
+void Game::SetResult(std::string result) { this->result = result; }