From b1a82ff56811565d11ef3b6506c5a7f3d8b595e9 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 26 Feb 2022 12:48:52 +0100 Subject: Now games can be imported --- src/game_tab/Game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game_tab/Game.cpp') 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; -- cgit v1.2.3