aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/move.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-08 10:31:22 +0100
committerCharlie Blake2018-06-08 10:31:22 +0100
commit819a1064c5142a9b2f04ff8149d34fc915c18322 (patch)
tree6d0c8763ad79df10e6e6bcd30a0a974326e54e3a /src/main/game/move.h
parentRemove reduced state build and logic (diff)
downloadmetasol-819a1064c5142a9b2f04ff8149d34fc915c18322.tar.gz
metasol-819a1064c5142a9b2f04ff8149d34fc915c18322.zip

Refactor legal moves gen and moves logic

Diffstat (limited to 'src/main/game/move.h')
-rw-r--r--src/main/game/move.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/game/move.h b/src/main/game/move.h
new file mode 100644
index 0000000..81a6116
--- /dev/null
+++ b/src/main/game/move.h
@@ -0,0 +1,20 @@
+//
+// Created by thecharlesblake on 07/06/18.
+//
+
+#ifndef SOLVITAIRE_MOVE_H
+#define SOLVITAIRE_MOVE_H
+
+#include "pile.h"
+
+struct move {
+ move(pile::ref , pile::ref, pile::size_type = 1);
+ bool is_dominance() const;
+ friend bool operator==(const move&, const move&);
+
+ const static pile::size_type dominance_flag;
+ pile::ref from; pile::ref to; pile::size_type count;
+};
+
+
+#endif //SOLVITAIRE_MOVE_H