diff options
Diffstat (limited to 'src/game_tab')
| -rw-r--r-- | src/game_tab/Game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp index 48e48bf..e26efd7 100644 --- a/src/game_tab/Game.cpp +++ b/src/game_tab/Game.cpp @@ -1,13 +1,13 @@ #include "Game.hpp" -Game::Game() : current(NULL), moves(NULL) { +Game::Game() : current(NULL), moves(NULL), result("*") { tags["White"] = ""; tags["Black"] = ""; initial_fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; board = "rnbqkbnrpppppppp PPPPPPPPRNBQKBNR"; } -Game::Game(std::string fen) : current(NULL), moves(NULL) { +Game::Game(std::string fen) : current(NULL), moves(NULL), result("*") { tags["White"] = ""; tags["Black"] = ""; tags["FEN"] = fen; @@ -15,7 +15,7 @@ Game::Game(std::string fen) : current(NULL), moves(NULL) { board = chessarbiter::FENParser::Parse(fen).board; } -Game::Game(HalfMove *m, std::string initial_fen) { +Game::Game(HalfMove *m, std::string initial_fen): result("*") { moves = m; current = m; this->initial_fen = initial_fen; |
