September 10, 2010 :: Posted by - admin :: Category -
Blackjack
Question by jose: I need help making a blackjack game in visual C++ 2008?
i already have 90% of it done i need help with some of the bugs
i need help with my if statement
if(int::Parse(dealersTotalInt->Text)==21)
{
MessageBox::Show(userName+” the dealer got blackjack”);
}
else
if(int::Parse(playersTotalInt->Text)==21)
{
MessageBox::Show(userName+” you got blackjack you won”);
}
else
if (int::Parse(playersTotalInt->Text)<15)
{
Windows::Forms::DialogResult buttonClicked;
buttonClicked = MessageBox::Show("Click yes if you want to hit \nClick no if you want to stand",
"HIT OR STAND",
MessageBoxButtons::YesNo,
MessageBoxIcon::Exclamation,
MessageBoxDefaultButton::Button2);
MessageBox::Show(String::Concat("You clicked on the ", buttonClicked, " button!"));
if (buttonClicked == Windows::Forms::DialogResult::Yes)
{
playerCard3->Visible=true;
playersCardValue3->Visible=true;
playersIntValue3->Visible=true;
addCard()
the code is almost 2000 lines
Best answer:
Answer by Sweet Princess
This is not even 30% of the code.
Give your answer to this question below!