aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/Game.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-03-01 15:58:02 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-03-01 15:58:02 +0100
commitcb4f5ada5c91629e96f1daecaf85dc92bee5359d (patch)
treeed25b0652a44596f72d034ad9cbb2b7331e3fac9 /src/game_tab/Game.cpp
parent9cba705e6631216bfcb8c95940bcf097a7888da2 (diff)
Move PGN export to the right place
Diffstat (limited to 'src/game_tab/Game.cpp')
-rw-r--r--src/game_tab/Game.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp
index 8b52ca6..1bc1e4c 100644
--- a/src/game_tab/Game.cpp
+++ b/src/game_tab/Game.cpp
@@ -99,7 +99,6 @@ bool Game::Play(std::string move) {
if (moves == NULL) {
moves = m;
}
- wxLogDebug("%s", GetPGN());
return (true);
}
return (false);
@@ -139,17 +138,7 @@ std::string Game::GetFen() {
return (current->GetFen());
}
-std::string Game::GetPGN() {
- std::string pgn;
- if (moves != NULL) {
- for (auto const &element : tags) {
- pgn += '[' + element.first + " \"" + element.second + "\"]\n";
- }
- pgn += moves->GetPGN();
- }
- pgn += " " + result;
- return (pgn);
-}
+std::string Game::GetResult() { return (result); }
void Game::SetResult(std::string result) { this->result = result; }