Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git

This commit is contained in:
dolcel committed 2026-10-20 23:59:02 +00:00
commit c09ce40be0
4048 files changed
+603256

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
/**
* @file Deck.h
* @author Lakota Dolce
* @brief This is the include (header) file for a deck.
* @version 0.1
* @date 2024-10-08
*
*
*/
#pragma once //prevents recursively including file must be at the top of every .h file
#include "Card.h"
#include <string>
#include <vector>
using namespace std;
class Deck {
private:
// private attributes
vector<Card> _deck;
/*buildDeck
Desc: Creates 52 individual cards by way of a nested for loop and stores it in the deck vector
Params -> none
Return -> none
*/
void buildDeck();
/*Shuffle
Desc: Shuffles the deck to be random
Params -> numShuffles - number of times for the deck to be shuffled
Returns -> none
*/
void Shuffle();
public:
//Public attributes
//Call the constructor
Deck();
/*deal
Desc: Deals cards to the user and removes them from the vector
Params -> none
Returns -> card
*/
Card deal();
/*sizeOf
Desc: returns the size of the deck
Params -> none
Returns -> int size of deck
*/
int sizeOf();
/*ToString
Desc: Used to print out the deck
Params -> none
Returns -> string
*/
string ToString();
};