I am making a simple black jack game and I good idea on what I need to do to finish it. However, I am not happy with the functions that I have made called Draw1 through Draw4 because I keep repeating the same code and the drawing of the cards is not as good as I would like but I am not sure how to fix it. Any suggestion on how to make this code more efficient would be great.
void draw1()
{
cls();
string a = card[fullDeck[0]].face; //first starting card
string b = card[fullDeck[0]].suite;
string c = card[fullDeck[1]].face; //second card
string d = card[fullDeck[1]].suite;
string e = card[fullDeck[45]].face; //computers cards
string f = card[fullDeck[45]].suite; //computers cards
computershand =card[fullDeck[45]].vaule;
//put a if statment here to check for aces!!
//put a functions check for aces and have it return the a total for players hand!
playershand= card[fullDeck[0]].vaule + card[fullDeck[1]].vaule;
cout<<" DEALERS HAND "<<"\n";
cout<<" _________ _________ "<<"\n";
cout<<" |"<<e<<" "<<"\n";
cout<<" | | |@@@@@@@@@| "<<"\n";
cout<<" | | |@@@@@@@@@| "<<"\n";
cout<<" | | |@@@@@@@@@| "<<"\n";
cout<<" | "<<f<<" "<<"\n";
cout<<" | | |@@@@@@@@@| "<<"\n";
cout<<" | | |@@@@@@@@@| "<<"\n";
cout<<" | | |@@@@@@@@@| "<<"\n";
cout<<" | "<<e<<" "<<"\n";
cout<<" |_________| |_________| "<<"\n";
cout<<" Hand Total= "<<computershand<<"\n\n\n";
cout<<" PLAYERS HAND "<<"\n";
cout<<" _________ _________ "<<"\n";
cout<<" |"<<a<<" "<<c<<" "<<"\n";
cout<<" | | | | "<<"\n";
cout<<" | | | | "<<"\n";
cout<<" | | | | "<<"\n";
cout<<" | "<<b<<" "<<d<<" "<<"\n";
cout<<" | | | | "<<"\n";
cout<<" | | | | "<<"\n";
cout<<" | | | | "<<"\n";
cout<<" | "<<a<<" "<<c<<"\n";
cout<<" |_________| |_________| "<<"\n";
cout<<" Hand Total= "<<playershand;