From 9c018b08ed775eda03e4507e33a20742659683ea Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sat, 28 Oct 2017 14:03:54 +0100 Subject: Refactor game generation to make more generic --- src/main/card.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/card.h') diff --git a/src/main/card.h b/src/main/card.h index 13507f0..1569a5b 100644 --- a/src/main/card.h +++ b/src/main/card.h @@ -21,6 +21,7 @@ private: }; std::ostream & operator<<(std::ostream &, card const &); +bool operator==(const card&, const card&); #endif //SOLITAIRE_PIP_CARD_H -- cgit v1.2.1 From c3e6f892599f145c14317e5712263b3e5562b785 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sat, 28 Oct 2017 22:21:03 +0100 Subject: Add generic solving and pile class --- src/main/card.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/card.h') diff --git a/src/main/card.h b/src/main/card.h index 1569a5b..7c28a28 100644 --- a/src/main/card.h +++ b/src/main/card.h @@ -14,6 +14,7 @@ public: card(const char*); int get_rank() const; char get_suit() const; + int get_suit_val() const; private: int rank; -- cgit v1.2.1 From 578f9c9f92d05b5907b91f07a4c732839d4dfca5 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Mon, 6 Nov 2017 14:14:38 +0000 Subject: Add counting of states searched --- src/main/card.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/main/card.h') diff --git a/src/main/card.h b/src/main/card.h index 7c28a28..ef6ae58 100644 --- a/src/main/card.h +++ b/src/main/card.h @@ -9,7 +9,6 @@ class card { public: - card(); card(int, int); card(const char*); int get_rank() const; -- cgit v1.2.1