-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWhoDidIt.h
54 lines (36 loc) · 1.19 KB
/
WhoDidIt.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
//***************************************************
// Filename: WhoDidIt.h
//
// Author: Blake Lapum
//***************************************************
#ifndef WHODIDIT_H_
#define WHODIDIT_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <ctype.h>
#define SIZE 8 //size of gel electrophoresis
#define EMPTY ' ' //an empty cell
#define FRAGMENT '-' //a fragment
#define NUMBER_OF_STORIES 5 //number of stories available
// Displays the board (as SIZE x SIZE grid) on console
void displayBoard(char board[][SIZE]);
// Initializes the board with start configuration of discs (see project specs)
void initializeBoard(char board[][SIZE]);
//setting the story setting for the crime
int setStory(char *analyst);
//mutating the gel electrophoresis
int mutateGel(char board[][SIZE]);
void setGel(char board[][SIZE]);
//return matches (per column/well)
int matches(char board[][SIZE]);
//is game over, if so, press any key except 'q' to replay
void gameOver();
//if game is won
void gameWon();
//if there is a match, what is the column num?
bool guess(char board[][SIZE], int col);
//prepares sample for processing
void prepareGel();
#endif /* WHODIDIT_H_ */