-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMAIN.cpp
45 lines (41 loc) · 1.02 KB
/
MAIN.cpp
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
#include<iostream>
#include"pingpong.cpp"
#include"snakegame.cpp"
#include"ticktacktoe1.cpp"
using namespace std;
int main()
{
int choice;
bool correct=true;
cout<<" "<<"MAIN MENU"<<endl;
cout<<" PRESS 1 FOR PINGPONG GAME "<<endl;
cout<<" PRESS 2 FOR SNAKE GAME"<<endl;
cout<<" PRESS 3 FOR TICTACTOE GAME"<<endl;
do
{
cin>>choice;
if(choice==1)
{
cGameManger pong(40,20);
pong.Run();
choice=true;
}
else if(choice==2)
{
RunSnakeGame();
choice=true;
}
else if(choice==3)
{
RunTicTacToe();
choice=true;
}
else
{
correct=false;
cout<<"ENTER CORRECT CHOICE"<<endl;
}
}
while(correct==false);
return 0;
}