diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-23 20:51:39 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-23 20:51:39 +0100 |
| commit | dc54f7ea0453452e90a75d5ebe9b103d1a1e10dc (patch) | |
| tree | 589146f03970bb821efada510cd1c9bb7c1eaf7a /src | |
| parent | 0fa6c24d8e0a4b82542948790b5860059b11f764 (diff) | |
Debug HalfMove and update screenshot
Diffstat (limited to 'src')
| -rw-r--r-- | src/game_tab/HalfMove.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game_tab/HalfMove.cpp b/src/game_tab/HalfMove.cpp index 72ee24c..e59794b 100644 --- a/src/game_tab/HalfMove.cpp +++ b/src/game_tab/HalfMove.cpp @@ -115,10 +115,14 @@ void HalfMove::SetAsMainline() { HalfMove *HalfMove::GetMainline() { return (mainline); } -HalfMove::HalfMove(pgnp::HalfMove *m, std::string initial_fen) { +HalfMove::HalfMove(pgnp::HalfMove *m, std::string initial_fen): capture(' ') { chessarbiter::ChessArbiter arbiter; arbiter.Setup(initial_fen); arbiter.Play(arbiter.ParseSAN(m->move)); + char capture=arbiter.GetCapture(); + if(capture != ' '){ + this->capture=capture; + } this->fen = arbiter.GetFEN(); this->move = m->move; this->IsBlack = m->isBlack; |
