-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiboggleplayer.h
37 lines (29 loc) · 1 KB
/
iboggleplayer.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
/**
* CSE 100 C++ Boggle
* Authors: Vivek Ramavajjala, Paul Kube
*/
#ifndef IBOGGLEPLAYER_H
#define IBOGGLEPLAYER_H
#include <set>
#include <vector>
#include <string>
using std::vector;
using std::set;
using std::string;
/**
* The interface class for any computer Boggle player.
* Subclass this, and provide definitions for all the
* public pure virtual member functions shown.
* See the README for detailed documentation on these functions.
*/
class IBogglePlayer {
public:
virtual void buildLexicon(const vector<string>& word_list) = 0;
virtual void setBoard(unsigned int rows, unsigned int cols, string** diceArray) = 0;
virtual bool getAllValidWords(unsigned int minimum_word_length, set<string>* words) = 0;
virtual bool isInLexicon(const string& word_to_check) = 0;
virtual vector<int> isOnBoard(const string& word_to_check) = 0;
virtual void getCustomBoard(string** &new_board, unsigned int *rows, unsigned int *cols) = 0;
virtual ~IBogglePlayer() {}
};
#endif // IBOGGLEPLAYER_H