aboutsummaryrefslogtreecommitdiff
path: root/src/main/sol_rules.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/sol_rules.h')
-rw-r--r--src/main/sol_rules.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/sol_rules.h b/src/main/sol_rules.h
new file mode 100644
index 0000000..83bbfb2
--- /dev/null
+++ b/src/main/sol_rules.h
@@ -0,0 +1,27 @@
+//
+// Created by thecharlesblake on 10/28/17.
+//
+
+#ifndef SOLVITAIRE_SOL_RULES_H
+#define SOLVITAIRE_SOL_RULES_H
+
+#include <vector>
+#include <string>
+
+struct sol_rules {
+ static enum class valid_sol;
+ static std::vector<std::string> valid_sol_strs;
+
+ sol_rules(std::string);
+
+ int tableau_pile_count;
+ int max_rank;
+ bool hole;
+ bool foundations;
+
+private:
+ static valid_sol valid_sol_enum(const std::string&);
+};
+
+
+#endif //SOLVITAIRE_SOL_RULES_H