aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/black-hole.json8
-rw-r--r--resources/canfield.json8
-rw-r--r--resources/default.json13
-rw-r--r--resources/free-cell.json6
-rw-r--r--resources/simple-black-hole.json9
-rw-r--r--resources/simple-canfield.json9
-rw-r--r--resources/simple-free-cell.json8
-rw-r--r--resources/simple-spanish-patience.json6
-rw-r--r--resources/spanish-patience.json5
-rw-r--r--src/main/input-output/sol_preset_types.h19
-rw-r--r--src/main/util/util.cpp5
-rw-r--r--src/main/util/util.h14
12 files changed, 110 insertions, 0 deletions
diff --git a/resources/black-hole.json b/resources/black-hole.json
new file mode 100644
index 0000000..64ffe76
--- /dev/null
+++ b/resources/black-hole.json
@@ -0,0 +1,8 @@
+{
+ "tableau piles": {
+ "count": 17,
+ "build order": "no-build"
+ },
+ "hole": true,
+ "foundations": false
+} \ No newline at end of file
diff --git a/resources/canfield.json b/resources/canfield.json
new file mode 100644
index 0000000..6ea3824
--- /dev/null
+++ b/resources/canfield.json
@@ -0,0 +1,8 @@
+{
+ "tableau piles": {
+ "count": 4,
+ "build policy": "red-black"
+ },
+ "reserve size": 14,
+ "stock size": 34
+} \ No newline at end of file
diff --git a/resources/default.json b/resources/default.json
new file mode 100644
index 0000000..629c46a
--- /dev/null
+++ b/resources/default.json
@@ -0,0 +1,13 @@
+{
+ "tableau piles": {
+ "count": 8,
+ "build order": "descending",
+ "build policy": "any-suit"
+ },
+ "max rank": 13,
+ "hole": false,
+ "foundations": true,
+ "cells": 0,
+ "reserve size": 0,
+ "stock size": 0
+} \ No newline at end of file
diff --git a/resources/free-cell.json b/resources/free-cell.json
new file mode 100644
index 0000000..12c1bdf
--- /dev/null
+++ b/resources/free-cell.json
@@ -0,0 +1,6 @@
+{
+ "tableau piles": {
+ "build policy": "red-black"
+ },
+ "cells": 4
+} \ No newline at end of file
diff --git a/resources/simple-black-hole.json b/resources/simple-black-hole.json
new file mode 100644
index 0000000..cde2fe1
--- /dev/null
+++ b/resources/simple-black-hole.json
@@ -0,0 +1,9 @@
+{
+ "tableau piles": {
+ "count": 9,
+ "build order": "no-build"
+ },
+ "max rank": 7,
+ "hole": true,
+ "foundations": false
+} \ No newline at end of file
diff --git a/resources/simple-canfield.json b/resources/simple-canfield.json
new file mode 100644
index 0000000..d93e9be
--- /dev/null
+++ b/resources/simple-canfield.json
@@ -0,0 +1,9 @@
+{
+ "tableau piles": {
+ "count": 2,
+ "build policy": "red-black"
+ },
+ "max rank": 2,
+ "reserve size": 2,
+ "stock size": 2
+} \ No newline at end of file
diff --git a/resources/simple-free-cell.json b/resources/simple-free-cell.json
new file mode 100644
index 0000000..15e7994
--- /dev/null
+++ b/resources/simple-free-cell.json
@@ -0,0 +1,8 @@
+{
+ "tableau piles": {
+ "count": 3,
+ "build policy": "red-black"
+ },
+ "max rank": 3,
+ "cells": 1
+} \ No newline at end of file
diff --git a/resources/simple-spanish-patience.json b/resources/simple-spanish-patience.json
new file mode 100644
index 0000000..9680d50
--- /dev/null
+++ b/resources/simple-spanish-patience.json
@@ -0,0 +1,6 @@
+{
+ "tableau piles": {
+ "count": 5
+ },
+ "max rank": 5
+} \ No newline at end of file
diff --git a/resources/spanish-patience.json b/resources/spanish-patience.json
new file mode 100644
index 0000000..2ffec07
--- /dev/null
+++ b/resources/spanish-patience.json
@@ -0,0 +1,5 @@
+{
+ "tableau piles": {
+ "count": 13
+ }
+} \ No newline at end of file
diff --git a/src/main/input-output/sol_preset_types.h b/src/main/input-output/sol_preset_types.h
new file mode 100644
index 0000000..02f602d
--- /dev/null
+++ b/src/main/input-output/sol_preset_types.h
@@ -0,0 +1,19 @@
+//
+// Created by thecharlesblake on 11/14/17.
+//
+
+#ifndef SOLVITAIRE_SOL_PRESET_TYPES_H
+#define SOLVITAIRE_SOL_PRESET_TYPES_H
+
+#include <string>
+#include <map>
+
+class sol_preset_types {
+public:
+ static std::string get(const std::string& s);
+ static bool is_valid_preset(const std::string& s);
+private:
+ static std::map<std::string, std::string> mp;
+};
+
+#endif //SOLVITAIRE_SOL_PRESET_TYPES_H
diff --git a/src/main/util/util.cpp b/src/main/util/util.cpp
new file mode 100644
index 0000000..ed46d3b
--- /dev/null
+++ b/src/main/util/util.cpp
@@ -0,0 +1,5 @@
+//
+// Created by thecharlesblake on 11/13/17.
+//
+
+#include "util.h"
diff --git a/src/main/util/util.h b/src/main/util/util.h
new file mode 100644
index 0000000..63b8d0d
--- /dev/null
+++ b/src/main/util/util.h
@@ -0,0 +1,14 @@
+//
+// Created by thecharlesblake on 11/13/17.
+//
+
+#ifndef SOLVITAIRE_UTIL_H
+#define SOLVITAIRE_UTIL_H
+
+
+class util {
+
+};
+
+
+#endif //SOLVITAIRE_UTIL_H