Advertisement
Guest User

board.h - scrabble

a guest
May 11th, 2010
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////
  2. //  Board.h
  3. //  Implementation of the Class Board
  4. //  Created on:      10-Mai-2010 11:43:13
  5. //  Original author: Francisco
  6. ///////////////////////////////////////////////////////////
  7.  
  8. #ifndef BOARD_H_
  9. #define BOARD_H_
  10.  
  11. #include "Pos.h"
  12. #include "Cell.h"
  13. #include <string>
  14. #include <vector>
  15.  
  16. using std::string;
  17. using std::vector;
  18.  
  19. extern const unsigned int TOTAL_ROWS = 15;
  20. extern const unsigned int TOTAL_COLUMNS = 15;
  21.  
  22. class Board
  23. {
  24.  
  25. public:
  26.     Board();
  27.     ~Board();
  28.     void addCell(Pos coord, char contents);
  29.     int insertWord(Pos coord, string word);
  30.     bool isWordPossible(Pos coord, string word);
  31.     void showBoard();
  32.  
  33. private:
  34.     vector< vector<Cell> > _matrix(TOTAL_ROWS , vector<Cell>(TOTAL_COLUMNS));
  35.  
  36. };
  37. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement