Blackjack
Loading...
Searching...
No Matches
user.h
Go to the documentation of this file.
1
10#ifndef USER_H
11#define USER_H
12
13#include "player.h"
14
15
16class User : public Player
17{
18public:
19 User(const int playerLimit) : Player("User", playerLimit)
20 {}
21
26 void chance(Deck& deck) override;
27
32 void hit(Deck& deck) override;
33};
34
35#endif
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
Definition user.h:17
void hit(Deck &deck) override
Compute the score based on the card the user is dealt.
Definition user.cpp:31
User(const int playerLimit)
Definition user.h:19
void chance(Deck &deck) override
Ask the user if he wants to HIT or STAND.
Definition user.cpp:15
Defines the contract for a Player.