-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.h
More file actions
29 lines (25 loc) · 744 Bytes
/
header.h
File metadata and controls
29 lines (25 loc) · 744 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
#ifndef HEADER_H
#define HEADER_H
typedef struct{
int numPos, maxGuess, curGuess;
char maxLet, answer[9], guess[9];
} Board;
void FlushStdin();
int seedPrompt(int *seed);
int maxLetterPrompt(char *maxLetter);
int numPosPrompt(int *numPositions);
int numGuessPrompt(int *numGuesses);
Board generateBoard(int seed, char maxLtr, int numPos, int numGuess);
int promptGuess(Board *brd, int *value);
int checkExactGuesses(Board brd);
int checkInexactGuesses(Board brd);
int existsInexactMatch(int numPos, char guess, char *answer);
void runTheGame(Board *brd, int *gameOver, int value);
int showGuesses(Board brd);
void printEOF();
int miniPrompt(int *x, int *y);
#define TRUE 1
#define FALSE 0
#define CORRECT 1
#define INCORRECT 0
#endif