aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorTom Harley2019-01-24 18:58:48 +0000
committerTom Harley2019-01-24 18:58:48 +0000
commitd7f6316bc982ce54fb83128cf0b59e9910da8263 (patch)
tree9238c9f46e1f364a40e3c053f3b6b032c21e070c /src/main
parentIt works with fortune's favor (diff)
downloadmetasol-d7f6316bc982ce54fb83128cf0b59e9910da8263.tar.gz
metasol-d7f6316bc982ce54fb83128cf0b59e9910da8263.zip

Split code into 3 files

The code that used to reside in metasol.cpp has been split between metasol.h, centre.cpp, and the original file.

Diffstat (limited to 'src/main')
-rw-r--r--src/main/api.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main/api.h b/src/main/api.h
index e454816..2140d8e 100644
--- a/src/main/api.h
+++ b/src/main/api.h
@@ -7,16 +7,9 @@
#include "game/sol_rules.h"
#include "game/card.h"
-// just for now, until I construct my own rules stuff:
-#include "input-output/input/json-parsing/rules_parser.h"
-
typedef std::vector<std::vector<std::string>> piles;
typedef std::vector<move> movelist;
-enum finished_state {
- SOLUTION_FOUND, NO_SOLUTION, TIMEOUT, SOLVER_OOM, CANCELLED
-};
-
class game_state {
public:
game_state(const sol_rules&, piles);