diff options
| author | thecharlesblake | 2018-01-12 16:31:38 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-12 16:31:38 +0000 |
| commit | 9ea820ab371c7e1c033ab912317ba6096db87caa (patch) | |
| tree | 735a13b877e7a66c597485a499a5814be841773f /src/main/game/pile.cpp | |
| parent | Add basic global_cache interface (diff) | |
| download | metasol-9ea820ab371c7e1c033ab912317ba6096db87caa.tar.gz metasol-9ea820ab371c7e1c033ab912317ba6096db87caa.zip | |
Add unit tests for global cache
Diffstat (limited to 'src/main/game/pile.cpp')
| -rw-r--r-- | src/main/game/pile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp index 82ae344..ad7b85e 100644 --- a/src/main/game/pile.cpp +++ b/src/main/game/pile.cpp @@ -12,6 +12,8 @@ using namespace std; using namespace boost; +pile::pile(std::vector<card> pv) : pile_vec(pv) {} + card pile::top_card() const { assert(!empty()); return pile_vec.back(); |
