Start and Endtime; Timediff on game end #15

This commit is contained in:
2017-05-07 14:38:14 +02:00
parent 98d42c4f6a
commit 4b0c611a60
2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
#include <time.h>
/* Defined macros */
#define DEFAULTTRIES 6
#define MAXWORDLENGTH 100
@@ -21,6 +26,8 @@ typedef struct {
char wrongCharacters[DEFAULTTRIES];
int trollEnabled;
char *alphabet;
time_t startTime;
time_t endTime;
} game_state;
typedef struct word {