-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriver.cpp
More file actions
34 lines (28 loc) · 894 Bytes
/
Driver.cpp
File metadata and controls
34 lines (28 loc) · 894 Bytes
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
/************************
Andre Vernon
Spades Program
Driver
04-06-11
************************/
#include "stdafx.h"
#include ".\Game.h"
#include ".\PreGame.h"
using namespace std;
/*********FUNCTIONS RAN IN THE DRIVER********************
PreGame::PreGame getPointsToPlayUpTo(); ASKS USER TO INPUT THE SCORE TO WIN THE GAME
Game::Game MainProgram(); RUNS THE GAME
********************************************************/
/*****************************************************
NAME: main
FUNCTION: STARTS THE PREGAME AND RUNS THE SPADES GAME
TYPE: VOID
ARGUEMENTS: N/A
RETURNS: N/A
*****************************************************/
void main()
{
PreGame p; //OPENS THE PREGAME OPTIONS
Game g(p.getPointsToPlayUpTo()); //ALLOWS THE USER TO PLAY TO THE SCORE THEY DESIRE
//Game g(100); //ALLOWS THE USER TO PLAY A QUICK GAME TO 100 POINTS
g.MainProgram();
}