-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
53 lines (46 loc) · 916 Bytes
/
Source.cpp
File metadata and controls
53 lines (46 loc) · 916 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdio.h>
#include "console.h"
#include "dichuyen.h"
#include "danh.h"
#include "dangnhap.h"
#include "banco.h"
#include "dieukien.h"
int main()
{
int n, ff;
char banco[100][100];
char c[20], d[20];
dangnhap(n);
clrscr();
TextColor(10);
nhapthongtin(c, d, n );
vebanco(banco,n);
clrscr();
gotoXY(0, 0);
for (int i = 0; i < 2 * n + 1; i++)
{
for (int j = 0; j < 4 * n + 1; j++)
printf("%c", banco[i][j]);
printf("\n");
}
TextColor(9);
gotoXY(4 * n + 5, 1);
printf("Player 1: ");
gotoXY(4 * n + 15, 1);
printf("%s", c);
gotoXY(4 * n + 5, 3);
printf("Player 2: ");
gotoXY(4 * n + 15, 3);
printf("%s", d);
dichuyen(n,banco,c,d);
gotoXY(4 * n + 25, 10);
TextColor(13);
printf("Ban co muon choi lai(1.Co/2.Khong): ");
scanf("%d", &ff);
if (ff == 1)
{
clrscr();
return main();
}
return 0;
}