aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/move.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-19 16:48:56 +0100
committerCharlie Blake2018-06-19 17:36:17 +0100
commit2bad89dfd8d100145526637c5ef33b8f410014df (patch)
tree1fb5c123465c39b77c05e6857621bc06bfc34b4f /src/main/game/move.h
parentAdd option to resume stopped run (diff)
downloadmetasol-2bad89dfd8d100145526637c5ef33b8f410014df.tar.gz
metasol-2bad89dfd8d100145526637c5ef33b8f410014df.zip

Reduce memory taken up by dfs datastructures

Diffstat (limited to 'src/main/game/move.h')
-rw-r--r--src/main/game/move.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/game/move.h b/src/main/game/move.h
index b852811..1e3a9d1 100644
--- a/src/main/game/move.h
+++ b/src/main/game/move.h
@@ -8,7 +8,7 @@
#include "pile.h"
struct move {
- enum class mtype {regular, dominance, built_group, stock_to_waste, stock_to_tableau, redeal, null};
+ enum class mtype : uint8_t {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&);
@@ -19,5 +19,4 @@ struct move {
pile::size_type count;
};
-
#endif //SOLVITAIRE_MOVE_H