aboutsummaryrefslogtreecommitdiff
path: root/src/main/game
diff options
context:
space:
mode:
authorCharlie Blake2018-06-20 10:05:47 +0100
committerGitHub2018-06-20 10:05:47 +0100
commitadb28d39b2d693db3d2cfa2a04d56c3942122e64 (patch)
tree1fb5c123465c39b77c05e6857621bc06bfc34b4f /src/main/game
parentMerge pull request #62 from thecharlesblake/fix-broken-tests (diff)
parentReduce memory taken up by dfs datastructures (diff)
downloadmetasol-adb28d39b2d693db3d2cfa2a04d56c3942122e64.tar.gz
metasol-adb28d39b2d693db3d2cfa2a04d56c3942122e64.zip

Merge pull request #63 from thecharlesblake/improve-mem-performance

Improve mem performance

Diffstat (limited to 'src/main/game')
-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