aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/card.h
blob: 1cac344d7fe7f8df33561be06f5cbd052c7d16fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// Created by thecharlesblake on 10/11/17.
//

#ifndef SOLITAIRE_PIP_CARD_H
#define SOLITAIRE_PIP_CARD_H

#include <string>
#include <map>

class card {
public:
    // A card can either be created using two int values (rank & suit), or
    // using a string (e.g. "AS")
    card(int, int);
    card(const char*);

    int get_rank() const;
    char get_suit() const;
    int get_suit_val() const;

private:
    int rank;
    int suit;
};

std::ostream & operator<<(std::ostream &, card const &);
bool operator==(const card&, const card&);


#endif //SOLITAIRE_PIP_CARD_H