-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
49 lines (45 loc) · 983 Bytes
/
main.cpp
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
/*
Name: Countdown Project (Letter round)
Copyright: All rights reserved Leximath 2014
Author: Leximath
Date: 05/11/14 18:25
Description: See README.txt
*/
#include "gen.h"
#include "cntdn.h"
#include "glos.h"
#include "judge.h"
#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <string>
#include <ctime>
#include <windows.h>
int pt = 0;
bool contgame;
int main () {
do {
system ("cls");
genm();
Sleep (5000);
system ("cls");
cntdn();
intxt (ans);
Sleep (1000);
if (glosans == true) {
check (gen,ans);
}
judge(checkans,ans);
if (checkans==1) {
if (ans.size()==9) pt+=18;
else pt+=ans.size();
}
printf("Your current score is %d", pt);
Sleep (3000);
system ("cls");
printf ("Press 1 and enter if you want to play another round. \n");
printf ("Press 0 and enter if you want to quit. \n");
cin >> contgame;
} while (contgame);
return 0;
}