aboutsummaryrefslogtreecommitdiff
path: root/src/HalfMove.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/HalfMove.cpp')
-rw-r--r--src/HalfMove.cpp14
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