Added the blackjack lib

This commit is contained in:
2023-06-13 09:33:43 +02:00
parent 4d41c4618e
commit ca3142a6cd
8 changed files with 385 additions and 0 deletions

21
blackjack/Player.hpp Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <iostream>
#include <vector>
#include <memory>
#include <random>
#include "Card.hpp"
class Player
{
public:
void addCard(std::unique_ptr<Card> card);
Card getLastCard(void) const;
int getHandValue() const;
std::string getHandString() const;
private:
std::vector<std::unique_ptr<Card>> hand_;
};