Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////////////
- // Board.h
- // Implementation of the Class Board
- // Created on: 10-Mai-2010 11:43:13
- // Original author: Francisco
- ///////////////////////////////////////////////////////////
- #ifndef BOARD_H_
- #define BOARD_H_
- #include "Pos.h"
- #include "Cell.h"
- #include <string>
- #include <vector>
- using std::string;
- using std::vector;
- extern const unsigned int TOTAL_ROWS = 15;
- extern const unsigned int TOTAL_COLUMNS = 15;
- class Board
- {
- public:
- Board();
- ~Board();
- void addCell(Pos coord, char contents);
- int insertWord(Pos coord, string word);
- bool isWordPossible(Pos coord, string word);
- void showBoard();
- private:
- vector< vector<Cell> > _matrix(TOTAL_ROWS , vector<Cell>(TOTAL_COLUMNS));
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement