aboutsummaryrefslogtreecommitdiff
path: root/src/HalfMove.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/HalfMove.hpp')
-rw-r--r--src/HalfMove.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/HalfMove.hpp b/src/HalfMove.hpp
index 8edea93..9e90fda 100644
--- a/src/HalfMove.hpp
+++ b/src/HalfMove.hpp
@@ -1,3 +1,6 @@
+#pragma once
+
+#include "Types.hpp"
#include <sstream>
#include <string>
#include <vector>
@@ -35,11 +38,13 @@ public:
std::string Dump();
/// @brief Perform a deep copy of a HalfMove
void Copy(HalfMove *copy);
- /// @brief Get HalfMove located x down the MainLine
- HalfMove* GetHalfMoveAt(int);
+ /// @brief Get HalfMove located x down the MainLine
+ HalfMove *GetHalfMoveAt(int);
};
struct HalfMoveOutOfRange : public std::exception {
- const char *what() const throw() { return "HalfMove distance is out of range"; }
+ const char *what() const throw() {
+ return "HalfMove distance is out of range";
+ }
};
} // namespace pgnp \ No newline at end of file