diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-26 12:03:24 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-26 12:03:24 +0100 |
| commit | bb914f047b0d96464f3e55234907df4e7c416e97 (patch) | |
| tree | 82963c3a4c9ea272163365ddf3144bd46fe78e82 /src/HalfMove.cpp | |
| parent | 8a770f9133957ad4356810efa4ede6e20dd01d26 (diff) | |
- Enable NAG parsing
- Add the LargeFileStream interface to handle large file
- Debug parsing
Diffstat (limited to 'src/HalfMove.cpp')
| -rw-r--r-- | src/HalfMove.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/HalfMove.cpp b/src/HalfMove.cpp index 290587a..7e94ef9 100644 --- a/src/HalfMove.cpp +++ b/src/HalfMove.cpp @@ -19,8 +19,8 @@ std::string HalfMove::NestedDump(HalfMove *m, int indent) { ss << " " << " Move=" << m->move << " Count=" << m->count << " Comment=\"" << m->comment << "\"" - << " IsBlack=" << m->isBlack << " Variations=" << m->variations.size() - << std::endl; + << " NAG=" << m->NAG << " IsBlack=" << m->isBlack + << " Variations=" << m->variations.size() << std::endl; for (auto *var : m->variations) { ss << NestedDump(var, indent + 1); @@ -65,15 +65,15 @@ void HalfMove::Copy(HalfMove *copy) { } HalfMove *HalfMove::GetHalfMoveAt(int distance) { - HalfMove *tmp=this; - while(distance>0){ - if(tmp==NULL){ + HalfMove *tmp = this; + while (distance > 0) { + if (tmp == NULL) { throw HalfMoveOutOfRange(); } distance--; - tmp=tmp->MainLine; + tmp = tmp->MainLine; } - return(tmp); + return (tmp); } } // namespace pgnp
\ No newline at end of file |
