Beispiel #1
0
int main () {
	BlackJack game ;
	game.play() ;	

	return 0 ;

}
Beispiel #2
0
int main(int argc, char * argv[])
{
	char selection;
	while (true)
	{
		menu();
		selection = getSelection();
		if (selection == 'b' || selection == 'B') // BlackJack
		{
			cout << "Loading BlackJack..." << endl;
			BlackJack * game = new BlackJack();
			game->play();
			delete game; game = NULL;
		}
		else if (selection == 'p' || selection == 'P') // Poker
		{
			cout << "Loading Poker..." << endl;
			Poker * game = new Poker();
			game->play();
			delete game; game = NULL;
		}
		else if (selection == 't' || selection == 'T') // Texas Holdem
		{
			cout << "Under construction. . ." << endl << endl;
			cin.get();
		}
		else if (selection == 'q' || selection == 'Q') // Quit
			break;
		else
			cout << "Please make a selection." << endl << endl;
	}
	cout << "Thanks for playing!" << endl;
	cout << "Happy Coding!" << endl;
	_getch();
	return 0;
}