Blackjack
Loading...
Searching...
No Matches
dealer.h
Go to the documentation of this file.
1
10#ifndef DEALER_H
11#define DEALER_H
12
13#include "player.h"
14
15
16class Dealer : public Player
17{
18 const int m_dealerLimit{};
19
20public:
21 Dealer(const int playerLimit, const int dealerLimit) : Player("Dealer", playerLimit), m_dealerLimit{ dealerLimit }
22 {}
23
28 void chance(Deck& deck) override;
29
35 void hit(Deck& deck) override;
36};
37
38#endif
Definition dealer.h:17
void chance(Deck &deck) override
Depending on the m_dealerLimit, the dealer can HIT or must STAND.
Definition dealer.cpp:13
void hit(Deck &deck) override
Compute the score based on the card the dealer gets.
Definition dealer.cpp:24
Dealer(const int playerLimit, const int dealerLimit)
Definition dealer.h:21
Definition deck.h:24
A player is defined by the score that he earns through his chances, in which he can either hit or sta...
Definition player.h:22
Defines the contract for a Player.