1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Deck.h
#pragma once
#include<iostream>
#include<string>
using namespace std;
class Deck
{
public:
const char cardsList[4][13] = // initializer list of all card letters, 4 rows (suits) by 13 columns(numbered cards)S
{
{ 'S','S','S' ,'S','S','S','S', 'S', '9', 'S', 'S', 'S', 'S' },
{ 'S','S','S' ,'S','S','S','S', 'S', '9', 'S', 'S', 'S', 'S' },
{ 'S','S','S' ,'S','S','S','S', 'S', '9', 'S', 'S', 'S', 'S' },
{ 'S','S','S' ,'S','S','S','S', 'S', '9', 'S', 'S', 'S', 'S' }
};
int cardsListValued[4][13] // initializer list of all card values
{
{ 11,2,3,4,5,6,7,8,9,10,10,10,10 },//Spades
{ 11,2,3,4,5,6,7,8,9,10,10,10,10 },//Clubs
{ 11,2,3,4,5,6,7,8,9,10,10,10,10 },//Hearts
{ 11,2,3,4,5,6,7,8,9,10,10,10,10 }//Diamonds
};
};
| |