aboutsummaryrefslogtreecommitdiff
path: root/solvitaire/src/test/test_helper.h
diff options
context:
space:
mode:
authorTom Harley2019-01-29 19:12:22 +0000
committerTom Harley2019-01-29 19:12:22 +0000
commit7b4f42242d277adeaec7a40eaac7d178141d4621 (patch)
treeeacece268545df914d730ad80d6a1b69f1448296 /solvitaire/src/test/test_helper.h
parentAdd support for reading gamestates from json files (diff)
downloadmetasol-7b4f42242d277adeaec7a40eaac7d178141d4621.tar.gz
metasol-7b4f42242d277adeaec7a40eaac7d178141d4621.zip

Reorganise submodules (and submodulise solvitaire)

The submodules should now point to repos I’ve made in order to produce static libraries from them. Also, solvitaire now points to a similar personal repo.

Diffstat (limited to 'solvitaire/src/test/test_helper.h')
m---------solvitaire0
-rw-r--r--solvitaire/src/test/test_helper.h41
2 files changed, 0 insertions, 41 deletions
diff --git a/solvitaire b/solvitaire
new file mode 160000
+Subproject b835e10bfb21a73b4f89e09ddeb400f41538483
diff --git a/solvitaire/src/test/test_helper.h b/solvitaire/src/test/test_helper.h
deleted file mode 100644
index 89d28cb..0000000
--- a/solvitaire/src/test/test_helper.h
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// Created by thecharlesblake on 12/26/17.
-//
-
-#ifndef SOLVITAIRE_TEST_HELPER_H
-#define SOLVITAIRE_TEST_HELPER_H
-
-#include <string>
-
-#include "../main/game/sol_rules.h"
-#include "../main/game/card.h"
-#include "../main/game/pile.h"
-#include "../main/game/move.h"
-#include "../main/game/search-state/game_state.h"
-
-class test_helper {
-public:
- static bool is_solvable(const std::string&, const std::string&);
- static void run_foundations_dominance_test(sol_rules::build_policy policy,
- std::vector<card> cards);
- static void expected_moves_test(sol_rules sr, std::initializer_list<std::initializer_list<std::string>>,
- std::vector<move>);
- static void k_plus_stock_test
- ( sol_rules sr
- , std::initializer_list<std::initializer_list<std::string>>
- , std::vector<move>
- , move
- , pile::size_type
- , pile::size_type
- , card
- , card
- );
- static bool moves_eq(std::vector<move>&, std::vector<move>&);
- static uint8_t cards_in_founds(game_state&);
-};
-
-std::ostream& operator <<(std::ostream&, const move&);
-std::ostream& operator <<(std::ostream&, const std::vector<move>&);
-
-
-#endif //SOLVITAIRE_TEST_HELPER_H