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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp
index 2b2955a..dab67b8 100644
--- a/src/game_tab/Game.cpp
+++ b/src/game_tab/Game.cpp
@@ -144,3 +144,9 @@ std::string Game::GetPGN() {
}
void Game::SetResult(std::string result) { this->result = result; }
+
+void Game::BuildAndVerify() {
+ if (moves != NULL) {
+ moves->BuildAndVerify(GetFen());
+ }
+}