aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/move.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-10 00:30:55 +0100
committerGitHub2018-06-10 00:30:55 +0100
commitd82642305dbcf53262ff41705a41c6e7c1591161 (patch)
treeb2bbe8c0aadaec16280f020e55eb55955be43d3f /src/main/game/move.h
parentMerge pull request #58 from thecharlesblake/fin (diff)
parentFinish refactoring game state class (diff)
downloadmetasol-d82642305dbcf53262ff41705a41c6e7c1591161.tar.gz
metasol-d82642305dbcf53262ff41705a41c6e7c1591161.zip

Merge pull request #59 from thecharlesblake/paper-tidy-up

Paper tidy up

Diffstat (limited to 'src/main/game/move.h')
-rw-r--r--src/main/game/move.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/game/move.h b/src/main/game/move.h
new file mode 100644
index 0000000..b852811
--- /dev/null
+++ b/src/main/game/move.h
@@ -0,0 +1,23 @@
+//
+// Created by thecharlesblake on 07/06/18.
+//
+
+#ifndef SOLVITAIRE_MOVE_H
+#define SOLVITAIRE_MOVE_H
+
+#include "pile.h"
+
+struct move {
+ enum class mtype {regular, dominance, built_group, stock_to_waste, stock_to_tableau, redeal, null};
+
+ explicit move(mtype, pile::ref = 255 , pile::ref = 255, pile::size_type = 1);
+ friend bool operator==(const move&, const move&);
+
+ mtype type;
+ pile::ref from;
+ pile::ref to;
+ pile::size_type count;
+};
+
+
+#endif //SOLVITAIRE_MOVE_H