-
Notifications
You must be signed in to change notification settings - Fork 0
/
startMatch.h
95 lines (63 loc) · 1.36 KB
/
startMatch.h
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <windows.h>
typedef struct date
{
int d, m, y;
} date;
typedef struct player
{
char name[30];
char outType[10];
int out, inAt, overs;
int batRuns, batBalls, fours, sixes;
int bowlRuns, bowlBalls, wickets, extras /*,maidens*/;
} player;
typedef struct team
{
char name[30];
int balls, runs, wickets, order;
player players[11];
} team;
typedef struct match
{
team battingTeam, bowlingTeam;
char venue[30];
date match_date;
int overs;
char toss[30];
char decision[5];
int innings;
player *onStrike;
player *offStrike;
player *currentBowler;
} match;
void start();
void startMatch();
void viewTeams(match *);
void afterViewing(match *);
void editTeam(match *);
void toss(match *);
void options();
void rules(match *);
void scoringMain(match *);
void changeStrike(player *, player *);
void changeTeam(team *, team *);
void runs(match *);
void nb(match *);
void wide(match *);
void blb(match *);
void w(match *);
void dirDismissal(match *);
void runOut(match *);
void startScoring(match *);
void innings(match *);
void ball(match *);
void Scorecard(match *, FILE *);
void matchEnd(match *);
player *nextBatsman(player *, match *);
player *nextBowler(match *);
void Summary(match *);
void storeScore(match *);