forked from Vishalport/Gully-Cricket-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
48 lines (33 loc) · 1.03 KB
/
main.cpp
File metadata and controls
48 lines (33 loc) · 1.03 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//============================================================================
// Name : CRICKET-IN
// Author : vishal kuamr
// Version : 1.0
// Copyright : Your copyright notice
// Description : CRICKET GAME in C++
//============================================================================
#include<iostream.h>
#include<cstdlib.h>
#include<ctime.h>
#include "game.h" // <iostream> , <cstdlib> , <ctime> , <limits> , "team.h
using namespace std;
int main() {
system("color 1e");
Game game;
game.welcome();
cout << endl <<endl;
cout << " Press Enter to Continue...";
getchar();
game.showAllPlayers();
cout << endl <<endl;
cout << " Press Enter to Continue...";
getchar();
game.selectPlayers();
game.showTeamPlayers();
cin.ignore(numeric_limits<streamsize>::max(),'\n'); // To clear input buffer
cout << "\n Press enter to toss..." << endl;
getchar();
game.toss();
game.startFirstInning();
// game.startSecondInning();
return 0;
}