-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseboggleplayer.h
36 lines (29 loc) · 1.01 KB
/
baseboggleplayer.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
/**
* CSE 100 C++ Boggle
* Authors: Vivek Ramavajjala, Paul Kube
*/
#ifndef BASEBOGGLEPLAYER_H
#define BASEBOGGLEPLAYER_H
#include <set>
#include <vector>
#include <string>
using std::vector;
using std::set;
using std::string;
/**
* The base 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 BaseBogglePlayer {
public:
virtual void buildLexicon(const set<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 ~BaseBogglePlayer() {}
};
#endif // BASEBOGGLEPLAYER_H