#include<stdio.h>
#include<math.h>
#include<time.h>
#include<windows.h>
void gotoxy(int x,int y)
{
COORD pos= {x,y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
void drawInit() {
// gotoxy(가로, 세로);
for(int i=0; i<24; i+=8) {
gotoxy(2+i, 2);
printf("┏");
gotoxy(4+i, 2);
printf("━");
gotoxy(6+i, 2);
printf("┓");
gotoxy(2+i, 3);
printf("┃");
gotoxy(6+i, 3); // numbering: 4,3 12,3, 20,3
printf("┃");
gotoxy(2+i, 4);
printf("┗");
gotoxy(4+i, 4);
printf("━");
gotoxy(6+i, 4);
printf("┛");
}
}
int main()
{
int num[10]= {};
int i, n, r, x, y;
int p[10]= {};
int strike=0;
int ball=0;
int input[3] = {0};
int answer1, answer2, answer3;
srand(time(NULL));
drawInit(); // Init map
// numbering: 4,3 12,3, 20,3
for(;;) {
gotoxy(4,3);
printf("%2d",input[0]);
gotoxy(12,3);
printf("%2d",input[1]);
gotoxy(20,3);
printf("%2d",input[2]);
Sleep(100);
}
}