From d472356d4e01c72e3b51deb28f694b9d0dd4fd6e Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sat, 28 Oct 2017 15:15:49 +0100 Subject: Add rules class to represent solitaire type --- src/main/sol_rules.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/sol_rules.h (limited to 'src/main/sol_rules.h') 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 +#include + +struct sol_rules { + static enum class valid_sol; + static std::vector 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 -- cgit v1.2.1