-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMastermind.h
44 lines (30 loc) · 971 Bytes
/
Mastermind.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
// Mastermind.h
// Problem Set 1b Chris Canal
// Team cansym [email protected]
// Sarada Symonds
//
// Class header file for homework 1b. Contains
// declarations for the Mastermind Class
#ifndef Mastermind_h
#define Mastermind_h
#include <iostream>
#include <vector>
class Mastermind
//code class declaration
{
public:
//default constructor
Mastermind();
//constructor that for setting n and m in secretCode from keyboard
Mastermind(int newN, int newM);
void printSecretCode();
Code humanGuess();
Response getResponse(Code & guessCode, Code & secretCode);
bool isSolved(Response responseObj);
int playGame();
private:
//vector containg code
Code secretCode;
};
#endif