diff options
| author | thecharlesblake | 2018-04-04 12:51:48 +0100 |
|---|---|---|
| committer | thecharlesblake | 2018-04-04 12:51:48 +0100 |
| commit | 669a438205ad4eba5b7c100b10312ff30bb5118e (patch) | |
| tree | 32c64dbea0058a0d89dbb8c34a683ce37b52eaaa /src/main/game/pile.cpp | |
| parent | Add card tests (diff) | |
| download | metasol-669a438205ad4eba5b7c100b10312ff30bb5118e.tar.gz metasol-669a438205ad4eba5b7c100b10312ff30bb5118e.zip | |
Add pile tests
Diffstat (limited to 'src/main/game/pile.cpp')
| -rw-r--r-- | src/main/game/pile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp index 382fa50..3136681 100644 --- a/src/main/game/pile.cpp +++ b/src/main/game/pile.cpp @@ -53,6 +53,10 @@ bool operator==(const pile& a, const pile& b) { return a.pile_vec == b.pile_vec; } +bool operator!=(const pile& a, const pile& b) { + return a.pile_vec != b.pile_vec; +} + bool operator<(const pile& a, const pile& b) { if (a.size() == b.size()) { return a.pile_vec < b.pile_vec; |
