void ComputerTurn() { path.clear(); string word = ""; string occupy(size * size, EMPTY); for(int i = 0; i < size; i++) { for(int j = 0; j < size; j++) { SearchAll(word, occupy, i, j); } } }
bool InBoard(const string &word) { path.clear(); string occupy(size * size, EMPTY); for(int i = 0; i < size; i++) { for(int j = 0; j < size; j++) { if(RInBoard(word, occupy, i, j, 0)) return true; } } return false; }