
-
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
-
54
-
55
-
56
-
57


목차
< 목 차 >
1. 게임화면(p.2 ~ p.3)
2. 기능설명(p.4 ~ p.7)
3. 기타사항(p.8)
4. 소스코드(p.9 ~ p.57)
1. 게임화면(p.2 ~ p.3)
2. 기능설명(p.4 ~ p.7)
3. 기타사항(p.8)
4. 소스코드(p.9 ~ p.57)
본문내용
4.소스코드
#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
#define GAME_TYPE 5
#define TIME 1000
#define START_MONEY 3000
#define SPEED 110
#define CARD_SPEED 200
int main_menu(int menu); //
void game_manual(); //
void first_distribution(); //
void second_distribution();//
void third_distribution(); //
void fourth_distribution(); //
void first_print(); //
void second_print(); //
void third_print(); //
void fourth_print(); //
void result();
int again_game();
void com12_hidden();
void player_hidden();
void random_card(); //
void card_refresh(); //
void card_sequence(); //
void preprocessing(); //
void royal_straight_flush();//
void back_straight_flush();//
void straight_flush();//
void four_card();//
void full_house();//
void flush();//
void mountain_straight();//
void back_straight();//
void straight(); //
void triple(); //
void two_pair(); //
void pair(); //
void high_card(); //
int betting();
void SetColor(char color); //색 지정 함수
TCHAR *cardpattern[4] = {\\\\\\"♣\\\\\\",\\\\\\"♡\\\\\\",\\\\\\"◇\\\\\\",\\\\\\"♠\\\\\\"};
TCHAR *cardnumber[13] = {\\\\\\"2\\\\\\",\\\\\\"3\\\\\\",\\\\\\"4\\\\\\",\\\\\\"5\\\\\\",\\\\\\"6\\\\\\",\\\\\\"7\\\\\\",\\\\\\"8\\\\\\",\\\\\\"9\\\\\\",\\\\\\"10\\\\\\",\\\\\\"J\\\\\\",\\\\\\"Q\\\\\\",\\\\\\"K\\\\\\",\\\\\\"A\\\\\\"};
int i, j;
int r = 0, t = 0;
int first = 0, round = 0;
int com1_judge_next = 0, com2_judge_next = 0, player_judge_next = 0;
struct CardTemp
{
int card_pttn[52];
int card_numb[52];
int card_sum[52];
int com1_cards[GAME_TYPE];
int com1_pttn[GAME_TYPE];
int com1_numb[GAME_TYPE];
int com1_score[13];
int com2_cards[GAME_TYPE];
int com2_pttn[GAME_TYPE];
int com2_numb[GAME_TYPE];
int com2_score[13];
#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
#define GAME_TYPE 5
#define TIME 1000
#define START_MONEY 3000
#define SPEED 110
#define CARD_SPEED 200
int main_menu(int menu); //
void game_manual(); //
void first_distribution(); //
void second_distribution();//
void third_distribution(); //
void fourth_distribution(); //
void first_print(); //
void second_print(); //
void third_print(); //
void fourth_print(); //
void result();
int again_game();
void com12_hidden();
void player_hidden();
void random_card(); //
void card_refresh(); //
void card_sequence(); //
void preprocessing(); //
void royal_straight_flush();//
void back_straight_flush();//
void straight_flush();//
void four_card();//
void full_house();//
void flush();//
void mountain_straight();//
void back_straight();//
void straight(); //
void triple(); //
void two_pair(); //
void pair(); //
void high_card(); //
int betting();
void SetColor(char color); //색 지정 함수
TCHAR *cardpattern[4] = {\\\\\\"♣\\\\\\",\\\\\\"♡\\\\\\",\\\\\\"◇\\\\\\",\\\\\\"♠\\\\\\"};
TCHAR *cardnumber[13] = {\\\\\\"2\\\\\\",\\\\\\"3\\\\\\",\\\\\\"4\\\\\\",\\\\\\"5\\\\\\",\\\\\\"6\\\\\\",\\\\\\"7\\\\\\",\\\\\\"8\\\\\\",\\\\\\"9\\\\\\",\\\\\\"10\\\\\\",\\\\\\"J\\\\\\",\\\\\\"Q\\\\\\",\\\\\\"K\\\\\\",\\\\\\"A\\\\\\"};
int i, j;
int r = 0, t = 0;
int first = 0, round = 0;
int com1_judge_next = 0, com2_judge_next = 0, player_judge_next = 0;
struct CardTemp
{
int card_pttn[52];
int card_numb[52];
int card_sum[52];
int com1_cards[GAME_TYPE];
int com1_pttn[GAME_TYPE];
int com1_numb[GAME_TYPE];
int com1_score[13];
int com2_cards[GAME_TYPE];
int com2_pttn[GAME_TYPE];
int com2_numb[GAME_TYPE];
int com2_score[13];
소개글