-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathText_UI.h
More file actions
32 lines (25 loc) · 788 Bytes
/
Text_UI.h
File metadata and controls
32 lines (25 loc) · 788 Bytes
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
32
#ifndef TEXT_UI_H_INCLUDED
#define TEXT_UI_H_INCLUDED
#include <string>
#include <vector>
#include "Card.h"
#include "Deck.h"
#include "Game.h"
class Text_UI
{
private:
Game game;
void show_game_scores() const;
void show_hand_scores() const;
void show_hand(const Deck& hand) const;
std::string card_str(const Card& card) const;
std::string direction_str(const int& how_many_players_to_the_left) const;
/** this function called in other input functions
@returns default constructed card for failure */
Card choose_card(const std::vector<Card>& hand_vector) const;
std::vector<Card> input_passing_choices(const Deck& hand) const;
Card input_play_choice(const Deck& hand) const;
public:
void play();
};
#endif // TEXT_UI_H_INCLUDED