1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include <iostream>
#include "Card.h"
#include "Deck.h"
using namespace std;
const string Card::cardColours[maxCardColours] = { "Blue", "Green", "Red", "Yellow" };
const string Card::cardFaces[maxCardFaces] = { "Zero", "One", "One", "Two", "Two", "Three", "Three", "Four", "Four", "Five", "Five", "Six", "Six", "Seven", "Seven", "Eight", "Eight", "Nine", "Nine", "Draw Two", "Draw Two", "Reverse", "Reverse", "Skip", "Skip"}; //duplicate cards accoring to Uno rules
Card::Card(int cardColour, int cardFace)
{
colour = cardColour;
face = cardFace;
}
string Card::toString() const
{
return cardColours[colour] + " " + cardFaces[face];
}
|