mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-03 02:37:39 +00:00
Debug Game class
This commit is contained in:
parent
91d764ba59
commit
21a5b3df8a
3 changed files with 10 additions and 1 deletions
|
@ -25,11 +25,13 @@ Game::Game(HalfMove *m, std::string initial_fen) : result("*") {
|
|||
Game::Game(const Game* g){
|
||||
board=g->board;
|
||||
initial_fen=g->initial_fen;
|
||||
board = chessarbiter::FENParser::Parse(initial_fen).board;
|
||||
result=g->result;
|
||||
tags=g->tags;
|
||||
current=nullptr;
|
||||
moves=nullptr;
|
||||
if(g->moves != NULL){
|
||||
moves=new HalfMove(g->moves);
|
||||
current=nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue