aboutsummaryrefslogtreecommitdiff
path: root/src/main/legacy_card.cpp
diff options
context:
space:
mode:
authorthecharlesblake2017-10-23 22:01:18 +0100
committerthecharlesblake2017-10-26 14:51:33 +0100
commite9693380d952552319b2cdd3f183e2e676676f95 (patch)
treeca02b06786c13e2680144079c9e2969e654ba1a2 /src/main/legacy_card.cpp
parentAdd simple black hole cmdline parse & err handling (diff)
downloadmetasol-e9693380d952552319b2cdd3f183e2e676676f95.tar.gz
metasol-e9693380d952552319b2cdd3f183e2e676676f95.zip

Add deal file parsing and verifying

Diffstat (limited to 'src/main/legacy_card.cpp')
-rw-r--r--src/main/legacy_card.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/legacy_card.cpp b/src/main/legacy_card.cpp
deleted file mode 100644
index 9481ecc..0000000
--- a/src/main/legacy_card.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-//
-// Created by thecharlesblake on 10/11/17.
-//
-
-#include "legacy_card.h"
-#include <string>
-
-legacy_card::legacy_card(const int r, const std::string s): rank(r), suit(s) {}
-
-std::ostream & operator<<(std::ostream & Str, legacy_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