-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.cpp
34 lines (33 loc) · 869 Bytes
/
client.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
#include"FOUR.h"
#include"iostream"
#include"conio.h"
using namespace std;
int main()
{
struct FOUR gaming = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, };
int flag = 1;
int bas[8][8] = { 0,1,1,1,1,1,1,2,
3,4,4,4,4,4,4,5,
3,4,4,4,4,4,4,5,
3,4,4,4,4,4,4,5,
3,4,4,4,4,4,4,5,
3,4,4,4,4,4,4,5,
3,4,4,4,4,4,4,5,
6,7,7,7,7,7,7,8 };
while (flag)
{
mainmenu(bas, gaming);
int choice;
label_1:cin >> choice;
switch (choice)
{
case 1:battle(bas, gaming); flag = 1; break;
case 2:vsAI(bas, gaming); flag = 1; break;
case 3:aboutauthor(); flag = 1; break;
case 4:exit(); flag = 0; break;
default:cout << "ÊäÈë´íÎó£¬ÇëÖØÐÂÊäÈë" << endl; goto label_1;
}
}
system("pause");
_getch();
}