aboutsummaryrefslogtreecommitdiff
path: root/src/main/Card.cpp
diff options
context:
space:
mode:
authorthecharlesblake2017-10-16 12:53:14 +0100
committerthecharlesblake2017-10-26 14:51:33 +0100
commitdb208b38d78571d68a5f92b7221175d2e67d09ed (patch)
tree26bbc29ec01a21346ce1304210978c9e1d30c10c /src/main/Card.cpp
parentMerge pull request #13 from thecharlesblake/docs (diff)
downloadmetasol-db208b38d78571d68a5f92b7221175d2e67d09ed.tar.gz
metasol-db208b38d78571d68a5f92b7221175d2e67d09ed.zip

Move setup classes to legacy

Diffstat (limited to 'src/main/Card.cpp')
-rw-r--r--src/main/Card.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/Card.cpp b/src/main/Card.cpp
deleted file mode 100644
index ead2fd5..0000000
--- a/src/main/Card.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-//
-// Created by thecharlesblake on 10/11/17.
-//
-
-#include "Card.h"
-#include <string>
-
-Card::Card(const int r, const std::string s): rank(r), suit(s) {}
-
-std::ostream & operator<<(std::ostream & Str, Card const & c) {
- std::string r;
- if (c.rank == 1) {
- r = "A";
- } else if (c.rank <= 10) {
- r = std::to_string(c.rank);
- } else if (c.rank == 11) {
- r = "J";
- } else if (c.rank == 12) {
- r = "Q";
- } else if (c.rank == 13) {
- r = "K";
- }
-
- return Str << r << c.suit;
-} \ No newline at end of file