aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-26 12:48:52 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-26 12:48:52 +0100
commitb1a82ff56811565d11ef3b6506c5a7f3d8b595e9 (patch)
treeab02508785096d8b434866402b57f9996efb19db /src/game_tab
parente0a1894928abb8361f959a147066e94e2cda996b (diff)
Now games can be imported
Diffstat (limited to 'src/game_tab')
-rw-r--r--src/game_tab/Game.cpp6
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;