38 lines
729 B
C++
38 lines
729 B
C++
//
|
|
// Created by alex on 7/21/25.
|
|
//
|
|
/*
|
|
*Game loop:
|
|
*idk bets yet
|
|
* player draws cards, displayed
|
|
* dealer draws cards, display one (add flipped to card?)
|
|
* if blackjacks, win/lose/tie
|
|
* else
|
|
* hit, stand, [LATER] DD, Split
|
|
* hit gets card and adds and checks
|
|
* if over 21, lose[OR DOES DEALER DRAW? CHECK]
|
|
* if 21, stand
|
|
* once stand commanded
|
|
* dealer begins drawing until point where it dont, or bust
|
|
* compare, get winner
|
|
*/
|
|
|
|
|
|
#ifndef BLACKJACK_H
|
|
#define BLACKJACK_H
|
|
#include "GameDeck.h"
|
|
|
|
|
|
class Blackjack {
|
|
public:
|
|
Blackjack(int numDecks);
|
|
void play();
|
|
private:
|
|
void displayCards(std::vector<Card> &cards);
|
|
int sum_cards(std::vector<Card> &cards);
|
|
GameDeck deck;
|
|
};
|
|
|
|
|
|
#endif //BLACKJACK_H
|