-
Notifications
You must be signed in to change notification settings - Fork 2
/
wwf_solo_board_builder.hpp
45 lines (31 loc) · 1.52 KB
/
wwf_solo_board_builder.hpp
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
#ifndef wwf_solo_board_builder_h
#define wwf_solo_board_builder_h
#include "board_builder.hpp"
class Scrabble_Game;
class Scrabble_Board;
/**
* This class implements the Board_Builder interface and is designed to
* construct a words-with-friends-2 vs AI scrabble board.
*
* Note that this class is a singleton.
*/
////////////////////////////////////////////////////////////////////////////////
class Wwf_Solo_Board_Builder : public Board_Builder
////////////////////////////////////////////////////////////////////////////////
{
public:
//////////////////////////////////////////////////////////////////////////////
//////////////////////////// PRIMARY INTERFACE ///////////////////////////////
//////////////////////////////////////////////////////////////////////////////
Wwf_Solo_Board_Builder(const Scrabble_Game& parent) : Board_Builder(parent) {}
virtual void build_board(Scrabble_Board* board) const;
static const unsigned BOARD_DIM = 11;
private: // ================ PRIVATE INTERFACE ================================
//////////////////////////////////////////////////////////////////////////////
////////////////////////// FORBIDDEN METHODS /////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
Wwf_Solo_Board_Builder(const Wwf_Solo_Board_Builder&) = delete;
Wwf_Solo_Board_Builder& operator=(const Wwf_Solo_Board_Builder&) = delete;
void set_4way_symm(Scrabble_Board* board, unsigned hi_row, unsigned hi_col, int arg_bonus) const;
};
#endif