aboutsummaryrefslogtreecommitdiff
path: root/src/main/black_hole_state.h
diff options
context:
space:
mode:
authorthecharlesblake2017-10-26 14:51:13 +0100
committerthecharlesblake2017-10-27 10:28:29 +0100
commit3eff79ed14f1fda1f148a9a4c5c3a1ae4edbee37 (patch)
treee0d25f622a2e35e72172cc0409e4c0937ed2c3f5 /src/main/black_hole_state.h
parentDraft of OO game logic (diff)
downloadmetasol-3eff79ed14f1fda1f148a9a4c5c3a1ae4edbee37.tar.gz
metasol-3eff79ed14f1fda1f148a9a4c5c3a1ae4edbee37.zip

BH Solver with path outputted, based on user input

Diffstat (limited to 'src/main/black_hole_state.h')
-rw-r--r--src/main/black_hole_state.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/black_hole_state.h b/src/main/black_hole_state.h
deleted file mode 100644
index 75fda71..0000000
--- a/src/main/black_hole_state.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// Created by thecharlesblake on 10/23/17.
-//
-
-#ifndef SOLVITAIRE_BLACK_HOLE_STATE_H
-#define SOLVITAIRE_BLACK_HOLE_STATE_H
-
-#include <vector>
-#include <ostream>
-
-#include <rapidjson/document.h>
-
-#include "card.h
-#include "game_state.h"
-
-class black_hole_state : public game_state {
-public:
- black_hole_state(const rapidjson::Document& doc);
- std::vector<game_state> get_next_legal_states() const override;
- bool is_solved() const override;
- std::ostream& print(std::ostream&) const override;
-
- friend std::ostream& operator<< (std::ostream&, const black_hole_state&);
-
-protected:
- virtual static const int MAX_RANK = 13;
-
-private:
- void move_to_hole(int);
- static bool adjacent(const card& a, const card& b);
-
- card hole_card;
- mutable bool solved;
-};
-
-#endif //SOLVITAIRE_BLACK_HOLE_STATE_H